public abstract class PolicyList extends com.google.gwt.user.client.ui.FlowPanel implements com.google.gwt.user.client.ui.HasValue<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>>, RemovePolicyEvent.HasRemovePolicyHandlers, PoliciesReorderedEvent.HasPoliciesReorderedHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.errai.ui.client.local.spi.TranslationService |
i18n |
protected LoggerService |
logger |
protected NavigationHelperService |
navHelper |
protected org.jboss.errai.ui.nav.client.local.TransitionAnchorFactory<EditPolicyPage> |
toEditPolicyFactory |
protected org.jboss.errai.ui.nav.client.local.TransitionAnchorFactory<UserRedirectPage> |
toUserFactory |
| Constructor and Description |
|---|
PolicyList()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addPoliciesReorderedHandler(PoliciesReorderedEvent.Handler handler)
Adds a handler to the widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addRemovePolicyHandler(RemovePolicyEvent.Handler handler)
Adds a handler to the widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>> handler) |
protected void |
createActionColumn(io.apiman.manager.api.beans.summary.PolicySummaryBean bean,
com.google.gwt.user.client.ui.FlowPanel row)
Creates the action column for the single policy row.
|
protected com.google.gwt.user.client.ui.FlowPanel |
createIconColumn(io.apiman.manager.api.beans.summary.PolicySummaryBean bean,
com.google.gwt.user.client.ui.FlowPanel row)
Creates the icon column.
|
protected NoEntitiesWidget |
createNoEntitiesWidget() |
protected void |
createSummaryColumn(io.apiman.manager.api.beans.summary.PolicySummaryBean bean,
com.google.gwt.user.client.ui.FlowPanel row)
Creates the summary column.
|
protected abstract String |
getRemovePermission() |
List<io.apiman.manager.api.beans.summary.PolicySummaryBean> |
getValue() |
protected boolean |
isFiltered() |
protected void |
onDragging(com.google.gwt.event.dom.client.MouseEvent<?> event,
io.apiman.manager.ui.client.local.pages.common.PolicyList.PolicyRow row)
Called when the user drags a policy.
|
protected void |
onDrop(com.google.gwt.event.dom.client.MouseEvent<?> event,
io.apiman.manager.ui.client.local.pages.common.PolicyList.PolicyRow row)
Called when the user drops a policy.
|
protected void |
onStartDragging(com.google.gwt.event.dom.client.MouseEvent<?> event,
io.apiman.manager.ui.client.local.pages.common.PolicyList.PolicyRow row)
Called when the user begins dragging a policy.
|
protected void |
postConstruct() |
void |
refresh(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> policies)
Refresh the display with the current value.
|
void |
setEntityInfo(String organizationId,
String entityId,
String entityVersion,
io.apiman.manager.api.beans.policies.PolicyType type)
Sets some info about the entity we're displaying policies for.
|
void |
setFilteredValue(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> value) |
void |
setValue(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> value) |
void |
setValue(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> value,
boolean fireEvents) |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait@Inject protected NavigationHelperService navHelper
@Inject protected org.jboss.errai.ui.client.local.spi.TranslationService i18n
@Inject protected org.jboss.errai.ui.nav.client.local.TransitionAnchorFactory<EditPolicyPage> toEditPolicyFactory
@Inject protected org.jboss.errai.ui.nav.client.local.TransitionAnchorFactory<UserRedirectPage> toUserFactory
@Inject protected LoggerService logger
public void setEntityInfo(String organizationId, String entityId, String entityVersion, io.apiman.manager.api.beans.policies.PolicyType type)
organizationId - entityId - entityVersion - type - @PostConstruct protected void postConstruct()
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>>HasValueChangeHandlers.addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler)public com.google.gwt.event.shared.HandlerRegistration addPoliciesReorderedHandler(PoliciesReorderedEvent.Handler handler)
PoliciesReorderedEvent.HasPoliciesReorderedHandlerspublic com.google.gwt.event.shared.HandlerRegistration addRemovePolicyHandler(RemovePolicyEvent.Handler handler)
RemovePolicyEvent.HasRemovePolicyHandlerspublic List<io.apiman.manager.api.beans.summary.PolicySummaryBean> getValue()
public void setFilteredValue(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> value)
HasValue.setValue(java.lang.Object)public void setValue(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> value)
setValue in interface com.google.gwt.user.client.TakesValue<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>>setValue in interface com.google.gwt.user.client.ui.HasValue<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>>HasValue.setValue(java.lang.Object)public void setValue(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<List<io.apiman.manager.api.beans.summary.PolicySummaryBean>>HasValue.setValue(java.lang.Object, boolean)public void refresh(List<io.apiman.manager.api.beans.summary.PolicySummaryBean> policies)
protected NoEntitiesWidget createNoEntitiesWidget()
protected com.google.gwt.user.client.ui.FlowPanel createIconColumn(io.apiman.manager.api.beans.summary.PolicySummaryBean bean,
com.google.gwt.user.client.ui.FlowPanel row)
bean - row - protected void createSummaryColumn(io.apiman.manager.api.beans.summary.PolicySummaryBean bean,
com.google.gwt.user.client.ui.FlowPanel row)
bean - row - protected void createActionColumn(io.apiman.manager.api.beans.summary.PolicySummaryBean bean,
com.google.gwt.user.client.ui.FlowPanel row)
bean - row - protected abstract String getRemovePermission()
protected boolean isFiltered()
protected void onStartDragging(com.google.gwt.event.dom.client.MouseEvent<?> event,
io.apiman.manager.ui.client.local.pages.common.PolicyList.PolicyRow row)
event - row - protected void onDragging(com.google.gwt.event.dom.client.MouseEvent<?> event,
io.apiman.manager.ui.client.local.pages.common.PolicyList.PolicyRow row)
event - row - protected void onDrop(com.google.gwt.event.dom.client.MouseEvent<?> event,
io.apiman.manager.ui.client.local.pages.common.PolicyList.PolicyRow row)
event - row - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.