|
|||||||||
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.levigo.util.swing.FlipFlopCollapsiblePanel
public class FlipFlopCollapsiblePanel
The FlipFlopCollapsiblePane is a special kind of collapsible pane which is not only titled, but toggles the title orientation so that it uses the least possible space when collapsed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
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 | |
---|---|
FlipFlopCollapsiblePanel(String collapsedTitle,
String expandedTitle,
LayoutManager layoutManager)
Create a FlipFlopCollapsiblePanel using the separate expanded and collapsed titles and
layout manager. |
Method Summary | |
---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
Overriden to redirect call to the content pane. |
CollapsiblePane |
getCollapsible()
|
Dimension |
getMaximumSize()
|
boolean |
isCollapsed()
|
static void |
main(String[] args)
|
void |
remove(Component comp)
Overriden to redirect call to the content pane |
void |
remove(int index)
Overriden to redirect call to the content pane. |
void |
removeAll()
Overriden to redirect call to the content pane. |
void |
setBackground(Color bg)
|
void |
setCollapsed(boolean collapsed)
Set expanded/collapsed. |
void |
setCollapsedTitle(String collapsedTitle)
Set the collapsed title. |
void |
setExpandedTitle(String expandedTitle)
Set the expanded title. |
void |
setLayout(LayoutManager mgr)
Overriden to redirect call to the content pane. |
void |
setOpaque(boolean isOpaque)
|
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 |
---|
@CallOnEDT public FlipFlopCollapsiblePanel(String collapsedTitle, String expandedTitle, LayoutManager layoutManager)
FlipFlopCollapsiblePanel
using the separate expanded and collapsed titles and
layout manager. The component ontents will be alinged to the open/close icon.
collapsedTitle
- expandedTitle
- layoutManager
- Method Detail |
---|
@CallOnEDT public void setBackground(Color bg)
setBackground
in class JComponent
@CallOnEDT public void setCollapsed(boolean collapsed)
collapsed
- @CallOnEDT public void setOpaque(boolean isOpaque)
setOpaque
in class JComponent
@CallOnEDT public void setLayout(LayoutManager mgr)
setLayout
in class Container
@CallOnEDT public Dimension getMaximumSize()
getMaximumSize
in class JComponent
protected void addImpl(Component comp, Object constraints, int index)
addImpl
in class Container
@CallOnEDT public void remove(Component comp)
remove
in class Container
@CallOnEDT public void remove(int index)
remove
in class Container
@CallOnEDT public void removeAll()
removeAll
in class Container
@CallOnEDT public void setCollapsedTitle(String collapsedTitle)
collapsedTitle
- @CallOnEDT public void setExpandedTitle(String expandedTitle)
expandedTitle
- @CallOnEDT public CollapsiblePane getCollapsible()
CollapsiblePane
@CallOnEDT public boolean isCollapsed()
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |