|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.ultraswing.TitlePanel
A panel with a tile bar on the top.
Usage example.
TitlePanel panel = new TitlePanel(split, "Folder List", true, weight) { public void onClose() { //do something on "close" event } }; // Then add panel to the container
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TitlePanel(CSplitPane split,
String title,
boolean isFirstInSplitPanel,
int weight)
Creates a TitlePanel |
Method Summary | |
boolean |
isRemoved()
Tests whether this panel has been removed from its parent container |
void |
onClose()
A callback that will be invoked whenever the panel is being removed from its parent panel |
void |
removeFromParentPanel()
Removes this TitlePanel from parent CSplitPane |
void |
restore()
Restores this TitlePanel in the parent CSplitPane |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TitlePanel(CSplitPane split, String title, boolean isFirstInSplitPanel, int weight)
split
- the parent split panetitle
- title text of title barisFirstInSplitPanel
- if true, it means this TitlePanel is the first component in the parent CSplitPaneweight
- the weight value of this TitlePanel in the parent CSplitPaneMethod Detail |
public void removeFromParentPanel()
public void restore()
public boolean isRemoved()
public void onClose()
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |