|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.cytoscape.util.swing.BasicCollapsiblePanel
public class BasicCollapsiblePanel
A user-triggered collapsible panel containing the component (trigger) in the titled border
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 | |
---|---|
BasicCollapsiblePanel(JRadioButton component)
Constructor for an option button controlled collapsible panel. |
|
BasicCollapsiblePanel(String text)
Constructor for a label/button controlled collapsible panel. |
Method Summary | |
---|---|
Component |
add(Component c)
This method will not add components as might be expected, instead use the method getContentPane() which will return a panel, and you may use add() on that. |
JPanel |
getContentPane()
This class requires that all content be placed within a designated panel, this method returns that panel. |
boolean |
isCollapsed()
Returns the current state of the panel, collapsed (true) or expanded (false). |
void |
setCollapsed(boolean collapse)
Collapses or expands the panel. |
void |
setTitleComponentText(String text)
Sets the title of of the border title component. |
void |
setToolTipText(String text)
Sets the tooltip text of this BasicCollapsiblePanel. |
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 BasicCollapsiblePanel(JRadioButton component)
component
- Radio button that expands and collapses the panel based on if
it is selected or notpublic BasicCollapsiblePanel(String text)
text
- Title of the collapsible panel in string format, used to
create a button with text and an arrow iconMethod Detail |
---|
public void setTitleComponentText(String text)
text
- The string title.public JPanel getContentPane()
public Component add(Component c)
add
in class Container
public void setCollapsed(boolean collapse)
collapse
- When set to true, the panel is collapsed, else it is expandedpublic boolean isCollapsed()
public void setToolTipText(String text)
setToolTipText
in class JComponent
text
- The string to set as the tooltip.
|
Cytoscape 3.0.0-beta1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |