org.openpermis.editor.policy.gui.dock
Class EditorDockable

java.lang.Object
  extended by bibliothek.gui.dock.common.intern.AbstractCDockable
      extended by bibliothek.gui.dock.common.intern.DefaultCDockable
          extended by bibliothek.gui.dock.common.DefaultMultipleCDockable
              extended by org.openpermis.editor.policy.gui.dock.EditorDockable
All Implemented Interfaces:
bibliothek.gui.dock.common.intern.CDockable, bibliothek.gui.dock.common.MultipleCDockable, ViewDockable

public class EditorDockable
extends bibliothek.gui.dock.common.DefaultMultipleCDockable
implements ViewDockable

Dockable implementation for editor views.

An editor view is a view that is displayed in the main working area. Editor views display a specific part of a model that is editable.

The difference between an EditorDockable and a ToolDockable is that while a tool dockable is unique there may be several EditorDockables that display different parts of a policy.

See Also:
ToolDockable
Since:
0.1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.common.intern.DefaultCDockable
bibliothek.gui.dock.common.intern.DefaultCDockable.Permissions
 
Nested classes/interfaces inherited from interface bibliothek.gui.dock.common.intern.CDockable
bibliothek.gui.dock.common.intern.CDockable.ExtendedMode
 
Field Summary
private  View view
          The view rendered by this dockable.
 
Fields inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable
listenerCollection
 
Fields inherited from interface bibliothek.gui.dock.common.intern.CDockable
ACTION_KEY_CLOSE, ACTION_KEY_EXTERNALIZE, ACTION_KEY_MAXIMIZE, ACTION_KEY_MINIMIZE, ACTION_KEY_NORMALIZE
 
Constructor Summary
EditorDockable(bibliothek.gui.dock.common.MultipleCDockableFactory<?,?> factory, View view)
          Creates a new editor dockable.
 
Method Summary
 View getView()
          Returns the view rendered by the dockable.
 void updateTitle()
          Updates the title of the dockable according to the view state.
 
Methods inherited from class bibliothek.gui.dock.common.DefaultMultipleCDockable
getFactory, isRemoveOnClose, setControl, setRemoveOnClose
 
Methods inherited from class bibliothek.gui.dock.common.intern.DefaultCDockable
add, add, addAction, addSeparator, getContentPane, getTitleIcon, getTitleText, getTitleToolTip, insertAction, insertSeparator, intern, isCloseable, isExternalizable, isMaximizable, isMinimizable, isStackable, remove, removeAction, removeAction, setCloseable, setExternalizable, setLayout, setMaximizable, setMinimizable, setStackable, setTitleIcon, setTitleText, setTitleToolTip
 
Methods inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable
addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, control, getAction, getAndClearResizeRequest, getBaseLocation, getClose, getColors, getControl, getDefaultLocation, getExtendedMode, getFonts, getMinimizedSize, getWorkingArea, init, isMinimizedHold, isResizeLocked, isResizeLockedHorizontally, isResizeLockedVertically, isTitleShown, isVisible, propertyListeners, putAction, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, setDefaultLocation, setExtendedMode, setLocation, setMinimizedHold, setMinimizedSize, setResizeLocked, setResizeLockedHorizontally, setResizeLockedVertically, setResizeRequest, setResizeRequest, setTitleShown, setVisible, setWorkingArea, stateListeners, toFront
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.common.intern.CDockable
addCDockablePropertyListener, addCDockableStateListener, addDoubleClickListener, addFocusListener, addKeyboardListener, getAction, getAndClearResizeRequest, getBaseLocation, getColors, getControl, getExtendedMode, getFonts, getMinimizedSize, getWorkingArea, intern, isCloseable, isExternalizable, isMaximizable, isMinimizable, isMinimizedHold, isResizeLockedHorizontally, isResizeLockedVertically, isStackable, isTitleShown, isVisible, removeCDockablePropertyListener, removeCDockableStateListener, removeDoubleClickListener, removeFocusListener, removeKeyboardListener, setExtendedMode, setLocation, setMinimizedHold, setMinimizedSize, setVisible, setWorkingArea
 

Field Detail

view

private final View view
The view rendered by this dockable.

Since:
0.1.0
Constructor Detail

EditorDockable

public EditorDockable(bibliothek.gui.dock.common.MultipleCDockableFactory<?,?> factory,
                      View view)
Creates a new editor dockable.

Parameters:
factory - the factory this dockable is attached to.
view - the view displayed by this editor.
Since:
0.1.0
Method Detail

getView

public View getView()
Description copied from interface: ViewDockable
Returns the view rendered by the dockable.

Specified by:
getView in interface ViewDockable
Returns:
the view rendered by the dockable.
Since:
0.1.0

updateTitle

public void updateTitle()
Description copied from interface: ViewDockable
Updates the title of the dockable according to the view state.

Specified by:
updateTitle in interface ViewDockable
Since:
0.1.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG