public interface MultiPartWidget
extends com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize, com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<org.uberfire.workbench.model.PartDefinition>, com.google.gwt.event.logical.shared.HasSelectionHandlers<org.uberfire.workbench.model.PartDefinition>
Modifier and Type | Method and Description |
---|---|
void |
addOnFocusHandler(org.uberfire.mvp.Command doWhenFocused)
Registers the given Command to be called each time something happens (for example, a UI gesture or parhaps an API
call) to make this widget believe its containing panel should be the focused panel.
|
void |
addPart(WorkbenchPartPresenter.View view) |
void |
changeTitle(org.uberfire.workbench.model.PartDefinition part,
String title,
com.google.gwt.user.client.ui.IsWidget titleDecoration) |
void |
clear()
Removes all contained WorkbenchParts from this multi-part panel.
|
Collection<org.uberfire.workbench.model.PartDefinition> |
getParts()
Returns the parts currently held by this widget.
|
int |
getPartsSize()
Returns the number of parts currently held by this widget.
|
boolean |
remove(org.uberfire.workbench.model.PartDefinition part)
Removes the given part from this widget.
|
boolean |
selectPart(org.uberfire.workbench.model.PartDefinition part)
Makes the given part visible if it is a direct child of this widget.
|
void |
setDndManager(WorkbenchDragAndDropManager dndManager) |
void |
setFocus(boolean hasFocus)
Informs this widget that its containing panel view has gained or lost panel focus.
|
void |
setPresenter(WorkbenchPanelPresenter presenter) |
addBeforeSelectionHandler
void setPresenter(WorkbenchPanelPresenter presenter)
void setDndManager(WorkbenchDragAndDropManager dndManager)
void clear()
void addPart(WorkbenchPartPresenter.View view)
void changeTitle(org.uberfire.workbench.model.PartDefinition part, String title, com.google.gwt.user.client.ui.IsWidget titleDecoration)
boolean selectPart(org.uberfire.workbench.model.PartDefinition part)
part
- the direct child part to select. Must not be null.boolean remove(org.uberfire.workbench.model.PartDefinition part)
part
- the part to remove. Must not be null.void setFocus(boolean hasFocus)
hasFocus
- if true, the containing panel now has focus. If false, the panel does not have focus.void addOnFocusHandler(org.uberfire.mvp.Command doWhenFocused)
Restated for clarity: the given command is called when this view thinks its panel should get focus. The command
is not called as a side effect of calls to setFocus(boolean)
.
doWhenFocused
- the command to call when this widget believes its panel should become focused. Typically, the given
command will call into the PanelManager to give focus to the containing panel.int getPartsSize()
Collection<org.uberfire.workbench.model.PartDefinition> getParts()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.