| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.action.actions.SeparatorAction
public class SeparatorAction
A separator represents a space between actions. A separator has no state, he is purely graphical.
| Field Summary | |
|---|---|
| static SeparatorAction | MENU_SEPARATORA separator that is only visible on menus | 
| static SeparatorAction | SEPARATORA separator that is visible on menus and on titles | 
| static SeparatorAction | TITLE_SEPARATORA separator which is only visible on titles | 
| Fields inherited from interface bibliothek.gui.dock.action.DockAction | 
|---|
| BUTTON_CONTENT_FILTER | 
| Constructor Summary | |
|---|---|
| SeparatorAction(ViewTarget<?>... targets)Creates a new separator. | |
| Method Summary | ||
|---|---|---|
|  void | bind(Dockable dockable)Informs this DockAction that icons, text, and other stuff like that, will be requested from this DockAction. | |
| 
 | createView(ViewTarget<V> target,
           ActionViewConverter converter,
           Dockable dockable)Creates a view for this action, for the platform targetand
 with help ofconverter. | |
|  boolean | shouldDisplay(ViewTarget<?> target)Tells whether the separator should be shown or not. | |
|  boolean | trigger(Dockable dockable)Does the appropriate action that can be done respecting the current state of this action. | |
|  void | unbind(Dockable dockable)Invoked only if the dockablewasboundto this DockAction, and if thedockablewill no longer be
 used for any method calls (exceptbind) on 
 this DockAction. | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final SeparatorAction SEPARATOR
public static final SeparatorAction MENU_SEPARATOR
public static final SeparatorAction TITLE_SEPARATOR
| Constructor Detail | 
|---|
public SeparatorAction(ViewTarget<?>... targets)
targets - the targets on which this separator should be visible| Method Detail | 
|---|
public boolean shouldDisplay(ViewTarget<?> target)
target - the target on which the separator might be made visible
true if the separator should be shown, false
 otherwise.public void bind(Dockable dockable)
DockAction
bind in interface DockActiondockable - the Dockable that may be used in the futureDockAction.unbind(Dockable)public void unbind(Dockable dockable)
DockActiondockable was bound
 to this DockAction, and if the dockable will no longer be
 used for any method calls (except bind) on 
 this DockAction.
unbind in interface DockActiondockable - The Dockable that will never be seen again, except
 it is maybe bind again.
public <V> V createView(ViewTarget<V> target,
                        ActionViewConverter converter,
                        Dockable dockable)
DockActiontarget and
 with help of converter. Clients might use their own
 code to create a new view, but the preferred way is to call
 ActionViewConverter.createView(ActionType, DockAction, ViewTarget, Dockable)
 with an ActionType that fits to this DockAction.
createView in interface DockActionV - the type of view requestedtarget - The platform on which the view will be usedconverter - A set of methods that can be used to create a viewdockable - The Dockable for which the view will be shown. Note that
 this action may not yet be bound to this action.
public boolean trigger(Dockable dockable)
DockAction
trigger in interface DockActiondockable - the element for which this action is called
true if this action could do anything, false
 if this action was not able to react in any way to the event.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||