public class MultiplicityGroup extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Class and Description |
---|---|
class |
MultiplicityGroup.ConditionChoices |
class |
MultiplicityGroup.SwappableFieldsHelper |
Modifier and Type | Field and Description |
---|---|
protected MultiplicityConfiguration |
config |
protected List<String> |
deletionParentKeys |
protected int |
itemCount |
protected String |
parentPath |
protected Callback<MultiplicityGroupItem> |
removeCallback |
protected Map<SwapCompositeCondition,List<SwapCompositeConditionFieldConfig>> |
swappableFieldsDefinition |
Constructor and Description |
---|
MultiplicityGroup() |
MultiplicityGroup(MultiplicityConfiguration config)
Creates an instance of a MultiplicityGroup based on the options in the MultiplicityConfiguration
A MultiplicityGroup uses GroupSection to display data in a variable grid.
|
MultiplicityGroup(MultiplicityConfiguration config,
Map<SwapCompositeCondition,List<SwapCompositeConditionFieldConfig>> swappableFieldsDefinition,
List<String> deletionParentKeys) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
MultiplicityConfiguration |
configSwappableMultiplicitySection(MultiplicityConfiguration origConfig) |
MultiplicityGroupItem |
createItem()
This adds an empty item to the multiplicity group
|
protected com.google.gwt.user.client.ui.Widget |
createWidget() |
protected com.google.gwt.user.client.ui.Widget |
generateAddWidget() |
int |
getAddItemKey()
This returns the index key for the model for the item currently being added by addItem
This is useful, if you need to refer to the index in the createItem method
|
MultiplicityConfiguration |
getConfig() |
int |
getItemCount() |
List<MultiplicityGroupItem> |
getItems() |
com.google.gwt.user.client.ui.FlowPanel |
getItemsPanel() |
String |
getParentPath() |
List<MultiplicityGroupItem> |
getRemovedItems() |
void |
incrementItemKey() |
void |
init(MultiplicityConfiguration config,
Map<SwapCompositeCondition,List<SwapCompositeConditionFieldConfig>> swappableFieldsDefinition,
List<String> deletionParentKeys) |
boolean |
isDirty() |
void |
onLoad() |
void |
redraw() |
void |
resetDirtyFlags() |
void |
setConfig(MultiplicityConfiguration config) |
void |
setIsDirty(boolean dirty) |
void |
setItemCount(int itemCount) |
void |
setParentPath(String parentPath)
Allows the parentpath for this instance to be set, e.g.
|
String |
translatePath(String path) |
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
protected MultiplicityConfiguration config
protected int itemCount
protected String parentPath
protected Map<SwapCompositeCondition,List<SwapCompositeConditionFieldConfig>> swappableFieldsDefinition
protected List<String> deletionParentKeys
protected Callback<MultiplicityGroupItem> removeCallback
public MultiplicityGroup()
public MultiplicityGroup(MultiplicityConfiguration config, Map<SwapCompositeCondition,List<SwapCompositeConditionFieldConfig>> swappableFieldsDefinition, List<String> deletionParentKeys)
public MultiplicityGroup(MultiplicityConfiguration config)
config
- public void init(MultiplicityConfiguration config, Map<SwapCompositeCondition,List<SwapCompositeConditionFieldConfig>> swappableFieldsDefinition, List<String> deletionParentKeys)
public void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
protected com.google.gwt.user.client.ui.Widget generateAddWidget()
public MultiplicityGroupItem createItem()
public com.google.gwt.user.client.ui.FlowPanel getItemsPanel()
protected com.google.gwt.user.client.ui.Widget createWidget()
public MultiplicityConfiguration configSwappableMultiplicitySection(MultiplicityConfiguration origConfig)
public String translatePath(String path)
public void clear()
public void redraw()
public void incrementItemKey()
public int getAddItemKey()
public List<MultiplicityGroupItem> getItems()
public List<MultiplicityGroupItem> getRemovedItems()
public int getItemCount()
public void setItemCount(int itemCount)
public String getParentPath()
public void setParentPath(String parentPath)
parentPath
- public MultiplicityConfiguration getConfig()
public void setConfig(MultiplicityConfiguration config)
public void resetDirtyFlags()
public boolean isDirty()
public void setIsDirty(boolean dirty)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.