|
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.JSeparator
com.ehsbe.commons.gui.JxTitledSeparator
public class JxTitledSeparator
A Separator, which allows a title to be specified.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JSeparator |
---|
JSeparator.AccessibleJSeparator |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JxTitledSeparator()
Creates a new horizontal separator without a title. |
|
JxTitledSeparator(String title)
Create a horizontal separator with the given title with leading alignment. |
|
JxTitledSeparator(String title,
int alignment)
Create a horizontal separator with the given title and alignment. |
|
JxTitledSeparator(String title,
int alignment,
int orientation)
Create a separator with the given title, alignment and orientation. |
Method Summary | |
---|---|
int |
getAlignment()
Get the current alignment set. |
int |
getBaseline(int width,
int height)
Get the baseline for the specified component, or a value less than 0 if the baseline can not be determined. |
AbstractButton |
getButton()
Get the button associated to this separator. |
String |
getTitle()
Set the title to be shown. |
String |
getUIClassID()
Returns the name of the L&F class that renders this component. |
protected String |
paramString()
|
void |
setAlignment(int alignment)
Set the title alignment. |
void |
setButton(AbstractButton button)
Set the button associated to this separator. |
void |
setTitle(String title)
Set the title to be shown. |
void |
updateUI()
|
Methods inherited from class javax.swing.JSeparator |
---|
getAccessibleContext, getOrientation, getUI, setOrientation, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JxTitledSeparator()
public JxTitledSeparator(String title)
title
- title to set. Might be null
.public JxTitledSeparator(String title, int alignment)
title
- title to set. Might be null
.alignment
- SwingConstants.LEADING
| SwingConstants.LEFT
|
SwingConstants.CENTER
| SwingConstants.RIGHT
|
SwingConstants.TRAILING
public JxTitledSeparator(String title, int alignment, int orientation)
title
- title to set. Might be null
.alignment
- SwingConstants.LEADING
| SwingConstants.LEFT
|
SwingConstants.CENTER
| SwingConstants.RIGHT
|
SwingConstants.TRAILING
orientation
- SwingConstants.HORIZONTAL
|
SwingConstants.VERTICAL
Method Detail |
---|
public void updateUI()
updateUI
in class JSeparator
public int getAlignment()
public void setAlignment(int alignment)
alignment
- SwingConstants.LEADING
| SwingConstants.LEFT
|
SwingConstants.CENTER
| SwingConstants.RIGHT
|
SwingConstants.TRAILING
public String getTitle()
null
.public void setTitle(String title)
title
- title to set. Might be null
.protected String paramString()
paramString
in class JSeparator
public String getUIClassID()
getUIClassID
in class JSeparator
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public int getBaseline(int width, int height)
getBaseline
in class JComponent
width
- Width of the component to determine baseline for.height
- Height of the component to determine baseline for.
public AbstractButton getButton()
public void setButton(AbstractButton button)
button
- button to set.
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |