|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.basic.action.BasicDropDownButtonHandler
public class BasicDropDownButtonHandler
A handler connecting a DropDownAction
with a BasicDropDownButtonModel
and its view. Clients should call the method setModel(BasicDropDownButtonModel)
to
connect model and handler.
Nested Class Summary | |
---|---|
protected class |
BasicDropDownButtonHandler.ButtonView
A view that sends all values directly to the button. |
protected class |
BasicDropDownButtonHandler.SelectionView
A set of properties which can be set by the selected action. |
Constructor Summary | |
---|---|
BasicDropDownButtonHandler(DropDownAction action,
Dockable dockable)
Creates a new handler. |
Method Summary | |
---|---|
void |
bind()
Binds this item to its action |
DropDownAction |
getAction()
Gets the action that is represented by this target. |
protected BasicDropDownButtonHandler.ButtonView |
getButtonView()
Gets the view which contains information about the currently selected action. |
Dockable |
getDockable()
|
JComponent |
getItem()
Gets this item as component. |
void |
popupTriggered()
Shows the popup menu |
protected void |
reset()
Sets all values of the filter to null . |
void |
setBackground(Color background)
Called by the title that shows this item to tell this item what the background color of the title is. |
void |
setForeground(Color foreground)
Called by the title that shows this item to tell this item what the foreground color of the title is. |
void |
setModel(BasicDropDownButtonModel model)
Sets the model to which this handler sends all properties of the action . |
void |
setOrientation(DockTitle.Orientation orientation)
Informs the item about the orientation of the title that uses this item. |
void |
triggered()
Invoked by a BasicButtonModel when the button, which is monitored
by the model, is clicked. |
void |
unbind()
Unbinds this item from its action |
protected void |
update()
Updates the filter . |
void |
updateUI()
Update the look and feel of the menu |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicDropDownButtonHandler(DropDownAction action, Dockable dockable)
action
- the action to observedockable
- the element for which the action
is shownMethod Detail |
---|
public void setModel(BasicDropDownButtonModel model)
action
.
model
- the model to inform about changespublic void setOrientation(DockTitle.Orientation orientation)
BasicTitleViewItem
setOrientation
in interface BasicTitleViewItem<JComponent>
orientation
- the orientationpublic void bind()
ViewItem
bind
in interface ViewItem<JComponent>
public void unbind()
ViewItem
unbind
in interface ViewItem<JComponent>
public void setBackground(Color background)
BasicTitleViewItem
setBackground
in interface BasicTitleViewItem<JComponent>
background
- the background color of the titlepublic void setForeground(Color foreground)
BasicTitleViewItem
setForeground
in interface BasicTitleViewItem<JComponent>
foreground
- the foreground color of the titlepublic DropDownAction getAction()
ViewItem
getAction
in interface ViewItem<JComponent>
null
public Dockable getDockable()
public JComponent getItem()
ViewItem
getItem
in interface ViewItem<JComponent>
public void triggered()
BasicTrigger
BasicButtonModel
when the button, which is monitored
by the model, is clicked.
triggered
in interface BasicTrigger
public void popupTriggered()
popupTriggered
in interface BasicDropDownButtonTrigger
public void updateUI()
protected BasicDropDownButtonHandler.ButtonView getButtonView()
protected void reset()
filter
to null
.
protected void update()
filter
. This might change some contents of the button.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |