|
JComponentPack 1.5.0 | |||||||||
| 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.zfqjava.swing.XSeparator
public class XSeparator
XSeparator provides a separator has a title.
Warning:
This component only support horizontal orientation, the vertical
orientation is in progress.
Note:
Since XSeparator is compitable with JSeparator
at API level, use it just replace JSeparator
with XSeparator.
| Nested Class Summary | |
|---|---|
protected class |
XSeparator.AccessibleXSeparator
This class implements accessibility support for the XSeparator class. |
| 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 | |
|---|---|
XSeparator()
Creates a new horizontal separator. |
|
XSeparator(int orientation)
Creates a new separator with the specified horizontal or vertical orientation. |
|
XSeparator(String title)
Constructs a XSeparator with a title title. |
|
XSeparator(String title,
int orientation)
Constructs a XSeparator without title. |
|
| Method Summary | |
|---|---|
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this XSeparator. |
String |
getTitle()
Returns the title to use |
int |
getTitlePosition()
Returns the title-position of the XSeparator. |
SeparatorUI |
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. |
protected String |
paramString()
Returns a string representation of this XSeparator. |
void |
setTitle(String title)
Sets the title to use. |
void |
setTitlePosition(int titlePosition)
Sets the title-position of the XSeparator. |
void |
setUI(SeparatorUI ui)
Sets the look and feel (L&F) object that renders this component. |
void |
updateUI()
Resets the UI property with a value from the current look and feel. |
| Methods inherited from class javax.swing.JSeparator |
|---|
getOrientation, setOrientation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XSeparator()
public XSeparator(int orientation)
orientation - an integer specifying
SwingConstants.HORIZONTAL or
SwingConstants.VERTICAL
IllegalArgumentException - if orientation
is neither SwingConstants.HORIZONTAL nor
SwingConstants.VERTICALpublic XSeparator(String title)
title.
public XSeparator(String title,
int orientation)
| Method Detail |
|---|
public void updateUI()
updateUI in class JSeparatorJComponent.updateUI()public SeparatorUI getUI()
getUI in class JSeparatorpublic void setUI(SeparatorUI ui)
setUI in class JSeparatorui - the SeparatorUI L&F objectUIDefaults.getUI(javax.swing.JComponent)public String getUIClassID()
getUIClassID in class JSeparatorJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)protected String paramString()
null.
paramString in class JSeparatorpublic void setTitle(String title)
title - the title to usegetTitle()public String getTitle()
setTitle(java.lang.String)public void setTitlePosition(int titlePosition)
titlePosition - the title position for the XSeparator, one of 5 legal values:
getTitlePosition()public int getTitlePosition()
setTitlePosition(int)public AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JSeparator
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||