|
JComponentPack 1.3.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.JToolBar
com.zfqjava.swing.JStyleBar
public class JStyleBar
JStyleBar provides a style bar.
Client Property:
| Name | Value | Default Value |
|---|---|---|
| JStyleBar.forContentType |
|
text/plain |
| Nested Class Summary | |
|---|---|
protected class |
JStyleBar.AccessibleJStyleBar
This class implements accessibility support for the JStyleBar class. |
| Nested classes/interfaces inherited from class javax.swing.JToolBar |
|---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
| 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.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 | |
|---|---|
JStyleBar()
Constructs a default style bar. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to this cardpane. |
protected void |
fireStateChanged()
Sends a ChangeEvent, whose source is this cardpane,
to each listener. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JStyleBar. |
AttributeSet |
getAttributes()
Returns the attributes for this style bar. |
AttributeSet |
getChangedAttributes()
Returns the changed attributes for this style bar. |
ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListeners added
to this JCardpane with addChangeListener. |
AttributeSet |
getDefaultAttributes()
Returns the default attributes for this style bar. |
protected String |
paramString()
Returns a string representation of this JStyleBar. |
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from this cardpane. |
void |
setAttributes(AttributeSet attributes)
Sets the attributes for this style bar. |
void |
setDefaultAttributes(AttributeSet defAttributes)
Sets the default attributes for this style bar. |
void |
updateUI()
Notification from the UIFactory that the L&F has changed. |
| Methods inherited from class javax.swing.JToolBar |
|---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JStyleBar()
| Method Detail |
|---|
public void updateUI()
UIFactory that the L&F has changed.
Called to replace the UI with the latest version from the
UIFactory.
updateUI in class JToolBarJComponent.updateUI()public void setDefaultAttributes(AttributeSet defAttributes)
Note:This default attributes store by reference
defAttributes - the default attributes for this style bargetDefaultAttributes()public AttributeSet getDefaultAttributes()
setDefaultAttributes(javax.swing.text.AttributeSet)public void setAttributes(AttributeSet attributes)
Note:This attributes store by reference
attributes - the attributes for this style bargetAttributes()public AttributeSet getAttributes()
setAttributes(javax.swing.text.AttributeSet)public AttributeSet getChangedAttributes()
setAttributes(javax.swing.text.AttributeSet)public void addChangeListener(ChangeListener l)
ChangeListener to this cardpane.
l - the ChangeListener to addfireStateChanged(),
removeChangeListener(javax.swing.event.ChangeListener)public void removeChangeListener(ChangeListener l)
ChangeListener from this cardpane.
l - the ChangeListener to removefireStateChanged(),
addChangeListener(javax.swing.event.ChangeListener)public ChangeListener[] getChangeListeners()
ChangeListeners added
to this JCardpane with addChangeListener.
ChangeListeners added or an empty
array if no listeners have been addedprotected void fireStateChanged()
ChangeEvent, whose source is this cardpane,
to each listener. This method method is called each time
a ChangeEvent is received from the model.
addChangeListener(javax.swing.event.ChangeListener),
EventListenerListprotected String paramString()
null.
paramString in class JToolBarpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JToolBar
|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||