public class DrawerWindow extends DockableWindow
Modifier and Type | Field and Description |
---|---|
static int |
CLOSE_ACTION_ID |
static int |
DROP_DOWN_ACTION_ID |
static int |
FLOAT_ACTION_ID |
static int |
MAXIMIZE_ACTION_ID |
static int |
MINIMIZE_ACTION_ID |
static int |
MOVE_ACTION_ID |
static int |
RESTORE_ACTION_ID |
static int |
SIZE_ACTION_ID |
CLOSED, HIDDEN, SHOWN
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
DEFAULT_VISIBILITY_MINIMIZED, DEFAULT_VISIBILITY_RAISED, DEFAULT_VISIBILITY_VISIBLE, TYPE_DISCARDABLE, TYPE_FORGETTABLE, TYPE_GLOBAL_VISIBLE, TYPE_NO_BUTTONS, TYPE_NORMAL, TYPE_NOT_TABBED, TYPE_RECYCLABLE, TYPE_TRUNCATE_TITLE
Constructor and Description |
---|
DrawerWindow(java.lang.String viewId,
View decorated,
Controller controller,
DrawerWindowConfig config) |
DrawerWindow(java.lang.String viewId,
View decorated,
DrawerWindowConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
accessibleDrawer() |
void |
activate(View view,
boolean whetherToActivate)
Activates/Deactivates given View (Drawer)
|
void |
addCloseableDrawer(DockableWindow view,
int index) |
void |
addDelegateControllers(Controller... delegates)
Adds the given controllers as "delegate controllers." The controller of this instance will handle an event or an
update only if the "delegate controllers" were not able to do so.
|
void |
addDrawer(DockableWindow view) |
void |
addDrawer(DockableWindow view,
float weight) |
void |
addDrawer(DockableWindow view,
int index) |
void |
addDrawer(View view,
DrawerConfig config) |
void |
addDrawerListener(DrawerListener listener) |
void |
addDrawerThatCanHideHandle(DockableWindow view) |
void |
clientVisible(java.lang.Object view,
boolean visible,
int flags) |
void |
closeAllExpandedDrawers() |
java.util.List<java.lang.Integer> |
drawerDockableStatuses(java.lang.Object view) |
java.util.List<View> |
drawerViews() |
void |
expand(View view) |
void |
expand(View view,
double ratio) |
boolean |
expanded(View view) |
void |
expandFirstDrawer() |
void |
expandOneDrawerAtATime() |
Controller |
getController()
Get the
Controller associated with this view. |
java.awt.Component |
getGUI() |
HelpInfo |
getHelpInfo() |
java.awt.Component |
getMinimizerTray() |
javax.swing.Icon |
getTabIcon()
Gets the icon to display in a tab along side the name.
|
java.lang.String |
getTabName()
Gets the name to display in a tab.
|
java.lang.String |
getTitleName()
Gets title to display in a title bar.
|
Toolbar |
getToolbar()
Get the toolbar associated with this view.
|
void |
hide(View view) |
void |
hideHandleIfOnlyOneDrawerShown() |
boolean |
isDrawerExpanded(java.lang.String drawerID) |
void |
loadLayout(PropertyAccess p)
reloads the layout information of this dockable.
|
void |
minimize(View view) |
void |
removeDrawerListener(DrawerListener listener) |
void |
removeIfPresent(View view) |
void |
restore(View view) |
void |
saveLayout(PropertyAccess p)
Saves the layout information of this dockable.
|
void |
show(View view) |
boolean |
showing(View view) |
void |
togglePanelsWithAnimation(java.util.List<View> toExpand,
java.util.List<View> toCollapse) |
void |
togglePanelsWithoutAnimation(java.util.List<View> toExpand,
java.util.List<View> toCollapse) |
void |
togglePanelsWithoutAnimation(View toExpand,
View toCollapse) |
void |
topComponent(javax.swing.JComponent topComponent) |
View |
undecorateIfNecessary(DockableWindow dockable) |
void |
updateDrawerHandlesVisibility() |
void |
updateVisibleActions(UpdateMessage updateMessage)
Called when the IDE or an extension requests that the
View updates the enabled state of any actions
that are visible on screen. |
addTitleChangeListener, close, dockableHidden, dockableShown, fireTitleChangeListener, getCachedDockable, getDefaultVisibility, getHeaderComponents, getHostedComponent, getMenuTitle, getSite, getTabDropListener, getType, getUniqueName, isDrawer, isVisible, removeTitleChangeListener, setDockableVisible, setSite, setType, show, stateChange, updateTitle
afterAutoExpanding, afterRestoringFromAutoExpansion, beforeAutoExpanding, getAutoExpansionPreferredSize, getAutoExpansionSize, isAutoExpandable, isAutoExpandableEnabled, setAutoExpandable, setAutoExpandableEnabled
activate, deactivate, getContext, getContextMenu, getDecorated, getSelectionFromUI, getViewWithoutDecoration, isDecorated, newId, setDecorated, setOwner, setToolbarVisible
addViewListener, addViewSelectionListener, addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, scheduleUpdateSelection, setId, toString, updateSelection, updateSelectionImpl, updateToolbarActions, updateVisibleActions
public static final int DROP_DOWN_ACTION_ID
public static final int RESTORE_ACTION_ID
public static final int MOVE_ACTION_ID
public static final int SIZE_ACTION_ID
public static final int FLOAT_ACTION_ID
public static final int MINIMIZE_ACTION_ID
public static final int MAXIMIZE_ACTION_ID
public static final int CLOSE_ACTION_ID
public DrawerWindow(java.lang.String viewId, View decorated, DrawerWindowConfig config)
public DrawerWindow(java.lang.String viewId, View decorated, Controller controller, DrawerWindowConfig config)
public final void addDrawerListener(DrawerListener listener)
public final void removeDrawerListener(DrawerListener listener)
public void expandOneDrawerAtATime()
public void hideHandleIfOnlyOneDrawerShown()
public void topComponent(javax.swing.JComponent topComponent)
public Toolbar getToolbar()
View
getToolbar
in class ViewDecorator
public HelpInfo getHelpInfo()
getHelpInfo
in interface Helpable
getHelpInfo
in class ViewDecorator
public void addDrawer(View view, DrawerConfig config)
public void addDrawer(DockableWindow view)
public void addDrawer(DockableWindow view, float weight)
public void addDrawerThatCanHideHandle(DockableWindow view)
public void addCloseableDrawer(DockableWindow view, int index)
public void addDrawer(DockableWindow view, int index)
public void updateDrawerHandlesVisibility()
public void addDelegateControllers(Controller... delegates)
delegates
- the "delegate controllers" to add.public Controller getController()
ControllerProvider
Controller
associated with this view.getController
in interface ControllerProvider
getController
in class ViewDecorator
public java.awt.Component getGUI()
getGUI
in class ViewDecorator
public java.lang.String getTabName()
Dockable
getTabName
in interface Dockable
getTabName
in class View
Dockable.getTabIcon()
public javax.swing.Icon getTabIcon()
DockableWindow
getTabIcon
in interface Dockable
getTabIcon
in class DockableWindow
View.getTabName()
public java.lang.String getTitleName()
Dockable
Dockable.getTabIcon()
public void minimize(View view)
public void expandFirstDrawer()
public void expand(View view)
public void expand(View view, double ratio)
public boolean expanded(View view)
public void activate(View view, boolean whetherToActivate)
view
- whetherToActivate
- Boolean.False deactivates View (Drawer), Boolean.TRUE activates View (Drawer)public void removeIfPresent(View view)
public void restore(View view)
public java.awt.Component getMinimizerTray()
public boolean showing(View view)
public void show(View view)
public void hide(View view)
public View undecorateIfNecessary(DockableWindow dockable)
public void togglePanelsWithAnimation(java.util.List<View> toExpand, java.util.List<View> toCollapse)
public void togglePanelsWithoutAnimation(View toExpand, View toCollapse)
public void togglePanelsWithoutAnimation(java.util.List<View> toExpand, java.util.List<View> toCollapse)
public boolean accessibleDrawer()
public java.util.List<java.lang.Integer> drawerDockableStatuses(java.lang.Object view)
public void clientVisible(java.lang.Object view, boolean visible, int flags)
public void saveLayout(PropertyAccess p)
Dockable
saveLayout
in interface Dockable
saveLayout
in class ViewDecorator
p
- the storage objectpublic void loadLayout(PropertyAccess p)
Dockable
loadLayout
in interface Dockable
loadLayout
in class ViewDecorator
p
- the storage objectpublic java.util.List<View> drawerViews()
public void updateVisibleActions(UpdateMessage updateMessage)
View
View
updates the enabled state of any actions
that are visible on screen. Typically this will involve updating actions that are in visible toolbars. If a
View
contains or manages other nested instances of View
, the outer call to
updateVisibleActions
should propagate inward to call the updateVisibleActions
of all
visible, nested View
s.updateVisibleActions
in class ViewDecorator
updateMessage
- information on what is triggering the update. Implementations may make use of this
information to decide whether or not an update is necessary, since updating the enabled state of a toolbar button
may be a lengthy operation. For example, buttons that control a remote debugger would involve network I/O and
evaluating their updated state could be avoided if the updateMessage indicates that the source of the update is not
relevant to the debugger.public void closeAllExpandedDrawers()
public boolean isDrawerExpanded(java.lang.String drawerID)