Interface ListBarWidget
-
- All Superinterfaces:
com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<org.uberfire.workbench.model.PartDefinition>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.event.logical.shared.HasSelectionHandlers<org.uberfire.workbench.model.PartDefinition>,com.google.gwt.user.client.ui.IsWidget,MultiPartWidget,com.google.gwt.user.client.ui.RequiresResize
public interface ListBarWidget extends MultiPartWidget
API contract for the header widget of panel views that extendAbstractSimpleWorkbenchPanelViewandMultiListWorkbenchPanelView. Each application needs exactly one implementation of this class at compile time (usually this will come from the view module). The implementing type must be a Dependent-scoped CDI bean.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEBUG_TITLE_PREFIXWhen a part is added to the list bar, a special title widget is created for it.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisableClosePart()Disable support to close parts.voiddisableDnd()Disable this list bar's to support drag and drop.voiddisableExpandPart()Disable part expansion (maximize)voidenableClosePart()Enable support to close parts.voidenableDnd()Enable this list bar's to support drag and drop.MaximizeToggleButtonPresentergetMaximizeButton()Returns the toggle button, which is initially hidden, that can be used to trigger maximizing and unmaximizing of the panel containing this list bar.booleanisDndEnabled()-
Methods inherited from interface com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers
addBeforeSelectionHandler
-
Methods inherited from interface com.google.gwt.event.logical.shared.HasSelectionHandlers
addSelectionHandler
-
Methods inherited from interface org.uberfire.client.workbench.panels.MultiPartWidget
addOnFocusHandler, addPart, changeTitle, clear, getParts, getPartsSize, remove, selectPart, setDndManager, setFocus, setPresenter
-
-
-
-
Field Detail
-
DEBUG_TITLE_PREFIX
static final String DEBUG_TITLE_PREFIX
When a part is added to the list bar, a special title widget is created for it. This title widget is draggable. To promote testability, implementations of this interface must set the draggable title widget's debug ID using theWidget.ensureDebugId()call. The debug ID must have the formDEBUG_ID_PREFIX + DEBUG_TITLE_PREFIX + partName.Note that debug IDs are only assigned when the app inherits the GWT Debug module. See
UIObject.ensureDebugId(com.google.gwt.dom.client.Element, String)for details.- See Also:
- Constant Field Values
-
-
Method Detail
-
enableDnd
void enableDnd()
Enable this list bar's to support drag and drop.
-
disableDnd
void disableDnd()
Disable this list bar's to support drag and drop.
-
getMaximizeButton
MaximizeToggleButtonPresenter getMaximizeButton()
Returns the toggle button, which is initially hidden, that can be used to trigger maximizing and unmaximizing of the panel containing this list bar. Make the button visible by callingUIObject.setVisible(boolean)and set its maximize and unmaximize actions withMaximizeToggleButtonPresenter.setMaximizeCommand(Command)andMaximizeToggleButtonPresenter.setUnmaximizeCommand(Command).
-
isDndEnabled
boolean isDndEnabled()
-
enableClosePart
void enableClosePart()
Enable support to close parts.
-
disableClosePart
void disableClosePart()
Disable support to close parts.
-
disableExpandPart
void disableExpandPart()
Disable part expansion (maximize)
-
-