|
||||||||||
| 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.jdesktop.swingx.JXPanel
org.jdesktop.swingx.JXTitledPanel
@JavaBean public class JXTitledPanel
A special type of Panel that has a Title section and a Content section.
The following properties can be set with the UIManager to change the look
and feel of the JXTitledPanel:
| 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 | |
|---|---|
static String |
LEFT_DECORATION
|
static String |
RIGHT_DECORATION
|
static String |
uiClassID
|
| 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 | |
|---|---|
JXTitledPanel()
Create a new JTitledPanel with an empty string for the title. |
|
JXTitledPanel(String title)
Create a new JTitledPanel with the given title as the title for the panel. |
|
JXTitledPanel(String title,
Container content)
Create a new JTitledPanel with the given String as the title, and the given Container as the content panel. |
|
| Method Summary | |
|---|---|
Container |
getContentContainer()
|
JComponent |
getLeftDecoration()
|
JComponent |
getRightDecoration()
|
String |
getTitle()
Gets the title for this titled panel. |
Font |
getTitleFont()
|
Color |
getTitleForeground()
|
Painter |
getTitlePainter()
|
TitledPanelUI |
getUI()
Returns the look and feel (L&F) object that renders this component. |
String |
getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
void |
setContentContainer(Container contentPanel)
|
void |
setLeftDecoration(JComponent decoration)
Adds the given JComponent as a decoration on the left of the title |
void |
setRightDecoration(JComponent decoration)
Adds the given JComponent as a decoration on the right of the title |
void |
setTitle(String title)
Sets the title for this title panel. |
void |
setTitleFont(Font titleFont)
|
void |
setTitleForeground(Color titleForeground)
|
void |
setTitlePainter(Painter p)
Set the Painter to use for painting the title section of the JXTitledPanel. |
void |
setUI(TitledPanelUI ui)
Sets the look and feel (L&F) object that renders this component. |
void |
updateUI()
Notification from the UIManager that the L&F has changed. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, paramString, setUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String uiClassID
// *,
JComponent.readObject(java.io.ObjectInputStream),
Constant Field Valuespublic static final String LEFT_DECORATION
public static final String RIGHT_DECORATION
| Constructor Detail |
|---|
public JXTitledPanel()
public JXTitledPanel(String title)
title -
public JXTitledPanel(String title,
Container content)
title - content - | Method Detail |
|---|
public TitledPanelUI getUI()
getUI in class JPanelpublic void setUI(TitledPanelUI ui)
ui - the TitledPanelUI L&F objectUIDefaults.getUI(javax.swing.JComponent)public String getUIClassID()
getUIClassID in class JPanelJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public void updateUI()
UIManager that the L&F has changed.
Replaces the current UI object with the latest version from the
UIManager.
updateUI in class JPanelJComponent.updateUI()public String getTitle()
public void setTitle(String title)
title - the title to displaypublic Container getContentContainer()
public void setContentContainer(Container contentPanel)
public void setRightDecoration(JComponent decoration)
decoration - public JComponent getRightDecoration()
public void setLeftDecoration(JComponent decoration)
decoration - public JComponent getLeftDecoration()
public Font getTitleFont()
public void setTitleFont(Font titleFont)
public void setTitlePainter(Painter p)
p - The Painter to use. May be nullpublic Painter getTitlePainter()
public Color getTitleForeground()
public void setTitleForeground(Color titleForeground)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||