|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.dropdown.DropDownFilter bibliothek.gui.dock.action.dropdown.AbstractDropDownFilter
public abstract class AbstractDropDownFilter
A DropDownFilter
which stores all properties. The properties can
be read by subclasses.
Field Summary | |
---|---|
protected javax.swing.Icon |
disabledIcon
the disabled icon provided by the selected element |
protected boolean |
enabled
whether the selected element is enabled |
protected javax.swing.Icon |
icon
the icon provided by the selected element |
protected Dockable |
representative
the Dockable which is represented by this view |
protected boolean |
selected
whether the selected element is selected |
protected java.lang.String |
text
the text of the selected element |
protected java.lang.String |
tooltip
the tooltip of the selected element |
Constructor Summary | |
---|---|
AbstractDropDownFilter(DropDownAction action,
Dockable dockable,
DropDownView view)
Creates a new filter. |
Method Summary | |
---|---|
void |
setDisabledIcon(javax.swing.Icon icon)
Sets the disabled icon of the button. |
void |
setDockableRepresentation(Dockable dockable)
Sets the Dockable which is represented by the view. |
void |
setEnabled(boolean enabled)
Sets the enabled-state of the button. |
void |
setIcon(javax.swing.Icon icon)
Sets the icon of the button. |
void |
setSelected(boolean selected)
Sets the selected-state of the button. |
void |
setText(java.lang.String text)
Sets the text of the button. |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip of the button. |
Methods inherited from class bibliothek.gui.dock.action.dropdown.DropDownFilter |
---|
bind, getAction, getDockable, getView, unbind, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.Icon icon
protected javax.swing.Icon disabledIcon
protected boolean enabled
protected boolean selected
protected java.lang.String text
protected java.lang.String tooltip
protected Dockable representative
Dockable
which is represented by this view
Constructor Detail |
---|
public AbstractDropDownFilter(DropDownAction action, Dockable dockable, DropDownView view)
action
- the action to filterdockable
- the owner of action
.view
- the view in which this action will write its propertiesMethod Detail |
---|
public void setDisabledIcon(javax.swing.Icon icon)
DropDownView
icon
- the disabled iconpublic void setEnabled(boolean enabled)
DropDownView
enabled
- the statepublic void setIcon(javax.swing.Icon icon)
DropDownView
icon
- the iconpublic void setSelected(boolean selected)
DropDownView
selected
- the statepublic void setText(java.lang.String text)
DropDownView
text
- the textpublic void setTooltip(java.lang.String tooltip)
DropDownView
tooltip
- the tooltippublic void setDockableRepresentation(Dockable dockable)
DropDownView
Dockable
which is represented by the view.
dockable
- the represented element, can be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |