|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.intern.ui.CDisablingStrategy
public class CDisablingStrategy
Adds a CDockablePropertyListener to each CDockable and reads the value of
CDockable.isEnabled(bibliothek.gui.dock.common.EnableableItem) to find out which Dockables
are disabled.
| Field Summary |
|---|
| Fields inherited from interface bibliothek.gui.dock.disable.DisablingStrategy |
|---|
STRATEGY |
| Constructor Summary | |
|---|---|
CDisablingStrategy(CControl control)
Creates a new strategy, this constructor will add a listener to control. |
|
| Method Summary | |
|---|---|
void |
addDisablingStrategyListener(DisablingStrategyListener listener)
Adds listener to this object, the listener will be informed when the state of this
DisablingStrategy changes. |
boolean |
isDisabled(Dockable dockable,
DockAction item)
Tells whether the action item, which is shown together with dockable, is disabled. |
boolean |
isDisabled(Dockable dockable,
DockTitle item)
Tells whether the title item, which is shown together with dockable, is disabled. |
boolean |
isDisabled(DockElement item)
Tells whether the item DockElement is disabled in general. |
boolean |
isTabDisabled(Dockable dockable)
Assuming dockable is shown with some tabs (e.g. |
void |
removeDisablingStrategyListener(DisablingStrategyListener listener)
Removes listener from this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CDisablingStrategy(CControl control)
control.
control - the control in whose realm this strategy will operate| Method Detail |
|---|
public void addDisablingStrategyListener(DisablingStrategyListener listener)
DisablingStrategylistener to this object, the listener will be informed when the state of this
DisablingStrategy changes.
addDisablingStrategyListener in interface DisablingStrategylistener - the listener to add, not nullpublic void removeDisablingStrategyListener(DisablingStrategyListener listener)
DisablingStrategylistener from this object.
removeDisablingStrategyListener in interface DisablingStrategylistener - the listener to removepublic boolean isDisabled(DockElement item)
DisablingStrategyDockElement is disabled in general. The exact effects of being disabled are
not defined, but when using the default implementation developers can expect that item will not
participate in any kind of drag and drop operation.
isDisabled in interface DisablingStrategyitem - the item which may be disabled
item is disabled
public boolean isDisabled(Dockable dockable,
DockAction item)
DisablingStrategyitem, which is shown together with dockable, is disabled.
isDisabled in interface DisablingStrategydockable - the dockable which shows itemitem - the action that might be disabled
item is disabled
public boolean isDisabled(Dockable dockable,
DockTitle item)
DisablingStrategyitem, which is shown together with dockable, is disabled.
isDisabled in interface DisablingStrategydockable - the dockable which shows itemitem - the title that might be disabled
item is disabledpublic boolean isTabDisabled(Dockable dockable)
DisablingStrategydockable is shown with some tabs (e.g. some EclipseTabs), this method decides
whether the tabs are disabled.
isTabDisabled in interface DisablingStrategydockable - the dockable which is shown together with some tab
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||