|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.basic.action.BasicSeparatorHandler
public class BasicSeparatorHandler
A handler that shows a JSeparator for a SeparatorAction.
| Constructor Summary | |
|---|---|
BasicSeparatorHandler(javax.swing.JSeparator separator,
SeparatorAction action)
Creates a new handler |
|
| Method Summary | |
|---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Adds a listener which will be called if this view is triggered. |
void |
bind()
Binds this item to its action |
DockAction |
getAction()
Gets the action that is represented by this target. |
javax.swing.JComponent |
getItem()
Gets this item as component. |
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes a listener from this view. |
void |
setBackground(java.awt.Color background)
Called by the title that shows this item to tell this item what the background color of the title is. |
void |
setForeground(java.awt.Color foreground)
Called by the title that shows this item to tell this item what the foreground color of the title is. |
void |
setOrientation(DockTitle.Orientation orientation)
Informs the item about the orientation of the title that uses this item. |
void |
unbind()
Unbinds this item from its action |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicSeparatorHandler(javax.swing.JSeparator separator,
SeparatorAction action)
separator - the separator to showaction - the action for which the action is shown| Method Detail |
|---|
public void bind()
ViewItem
bind in interface ViewItem<javax.swing.JComponent>public void addActionListener(java.awt.event.ActionListener listener)
MenuViewItem
addActionListener in interface MenuViewItem<javax.swing.JComponent>listener - the new listenerpublic void removeActionListener(java.awt.event.ActionListener listener)
MenuViewItem
removeActionListener in interface MenuViewItem<javax.swing.JComponent>listener - the listener to removepublic void setOrientation(DockTitle.Orientation orientation)
BasicTitleViewItem
setOrientation in interface BasicTitleViewItem<javax.swing.JComponent>orientation - the orientationpublic DockAction getAction()
ViewItem
getAction in interface ViewItem<javax.swing.JComponent>nullpublic javax.swing.JComponent getItem()
ViewItem
getItem in interface ViewItem<javax.swing.JComponent>public void setBackground(java.awt.Color background)
BasicTitleViewItem
setBackground in interface BasicTitleViewItem<javax.swing.JComponent>background - the background color of the titlepublic void setForeground(java.awt.Color foreground)
BasicTitleViewItem
setForeground in interface BasicTitleViewItem<javax.swing.JComponent>foreground - the foreground color of the titlepublic void unbind()
ViewItem
unbind in interface ViewItem<javax.swing.JComponent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||