|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
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
com.ehsbe.commons.gui.JxTitledPanel
public class JxTitledPanel
A JPanel with a title setting facility.
Since it uses a JxTitledBorder
, setting a new
Border will replace 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 | |
---|---|
JxTitledPanel()
Default constructor. |
|
JxTitledPanel(LayoutManager manager)
Construct a panel with the given layout manager. |
|
JxTitledPanel(LayoutManager manager,
String title)
Construct a panel with the given layout manager and the given title. |
|
JxTitledPanel(String title)
Create a panel with the given title by applying an appropriate titled border. |
Method Summary | |
---|---|
JxTitledBorder |
getTitledBorder()
Get the border currently used for updateing the panels title. |
void |
setTitle(String title)
Set the title of the panel. |
void |
setTitledBorder(JxTitledBorder border)
Set the customized titled border, which will be used for title updates etc. |
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 JxTitledPanel()
public JxTitledPanel(LayoutManager manager)
manager
- the layout manager to use.public JxTitledPanel(String title)
title
- title to set.public JxTitledPanel(LayoutManager manager, String title)
manager
- the layout manager to use.title
- title to set.Method Detail |
---|
public void setTitle(String title)
title
- title to set. Might be null
public void setTitledBorder(JxTitledBorder border)
border
- border to set.setTitle(String)
public JxTitledBorder getTitledBorder()
NOTE: If you change the border, you should revalidate and repaint this component.
null
if not set, the border otherwise.
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |