|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.ControlPainter com.cc.framework.ui.painter.html.HtmlPainterBase com.cc.framework.ui.painter.html.HtmlSwapSelectPainter
Painter for the Swap Select Control
Nested Class Summary | |
protected static class |
HtmlSwapSelectPainter.AvailableOptionsIterator
Iterator that filters on available option elements only |
protected static interface |
HtmlSwapSelectPainter.OptionFilter
Used to filter options from the option list |
protected static class |
HtmlSwapSelectPainter.OptionItemImpl
Simple option item implementation |
protected static class |
HtmlSwapSelectPainter.OverallOptionsIterator
Iterator that keeps the sorting order of the selected value list! |
protected static class |
HtmlSwapSelectPainter.SelectedFilter
|
protected static class |
HtmlSwapSelectPainter.UnselectedFilter
|
Field Summary |
Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
Constructor Summary | |
HtmlSwapSelectPainter(PainterContext painterContext,
SwapSelectControl ctrl)
Constructor |
Method Summary | |
protected java.lang.String |
addGroupIndex(java.lang.String styleId,
int groupIndex)
|
protected org.apache.ecs.html.Table |
createButtonTable(java.util.Collection buttons)
|
protected OptionsIterator |
createIterator(int groupIndex)
Creates an option iterator |
protected OptionsIterator |
createSelectedAllIterator()
Creates an option iterator for all selected values (in all groups) |
protected org.apache.ecs.ConcreteElement |
doCreateAddAllButton(int groupIndex,
boolean enabled)
Creates the add all Button |
protected org.apache.ecs.ConcreteElement |
doCreateAddButton(int groupIndex,
boolean enabled)
Creates the add Button |
protected java.util.Collection |
doCreateButtons(int groupIndex)
Creates the buttons to move the option elements from one window to the other |
protected org.apache.ecs.ConcreteElement |
doCreateDisplayElement()
Creates the element for display only. |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Creates the HTML-Element. |
protected org.apache.ecs.ElementContainer |
doCreateHiddenFields()
This method creates all the hidden fields that are necessary to synchronize the selected values back to the server |
protected java.util.Collection |
doCreateMoveButtons(int groupIndex)
Creates the buttons to move the order of option elements |
protected org.apache.ecs.ConcreteElement |
doCreateMoveDownButton(int groupIndex,
boolean enabled)
Creates the move down Button |
protected org.apache.ecs.ConcreteElement |
doCreateMoveUpButton(int groupIndex,
boolean enabled)
Creates the move up Button |
protected org.apache.ecs.ConcreteElement |
doCreateRemoveAllButton(int groupIndex,
boolean enabled)
Creates the remove all Button |
protected org.apache.ecs.ConcreteElement |
doCreateRemoveButton(int groupIndex,
boolean enabled)
Creates the remove Button |
protected JavaScript |
doCreateScript()
Creates the Java Script Code which is needed by the control |
protected org.apache.ecs.ConcreteElement |
doCreateSelectBox(int groupIndex)
Creates on single select box |
protected void |
doPaintHorizontal(org.apache.ecs.html.Table control)
Paints the control in horizontal orientation |
protected void |
doPaintVertical(org.apache.ecs.html.Table control)
Paints the control in vertical orientation |
protected SwapSelectControl |
getCtrl()
Retrieves the control for this painter |
protected int |
getGroupCount()
|
protected java.lang.String |
getHiddenFieldName(int groupIndex)
|
protected java.lang.String |
getLabelLeft()
Retrieves the label for the available options select box |
protected java.lang.String |
getLabelRight(int groupIndex)
Retrieves the label for the given element group |
protected int |
getSize(int groupIndex)
|
protected java.lang.Object[] |
getValues()
Retrieves the value for the text control |
protected java.lang.Object[] |
getValues(int groupIndex)
|
protected java.lang.String |
imgRes(ControlButton type,
boolean enabled)
Selects the image resource to use for the specified button |
protected boolean |
isHorizontal()
Checks if the controls orientation is horizontal |
protected boolean |
isMultiple()
|
protected boolean |
showLabels()
Checks if the labels should be visible |
protected boolean |
showMoveButtons()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlSwapSelectPainter(PainterContext painterContext, SwapSelectControl ctrl)
painterContext
- The PainterContextctrl
- The Control to renderMethod Detail |
protected SwapSelectControl getCtrl()
protected boolean isMultiple()
true
when the control should be rendered
as a multiple swap select control with multiple shift targetsprotected boolean showLabels()
true
if the labels should be visibleprotected boolean isHorizontal()
true
if the controls orientation is horizontalprotected boolean showMoveButtons()
true
when the control should show buttons for data
movementprotected java.lang.String getLabelLeft()
protected java.lang.String getLabelRight(int groupIndex)
groupIndex
- the index of the element group
protected int getSize(int groupIndex)
protected int getGroupCount()
protected OptionsIterator createIterator(int groupIndex)
groupIndex
- When set to >= 0
the method will return an
iterator for the selected option elements (the right side of
the swap select) only. When set to -1
it
will create an iterator for the available options (the left
side of the control) only.
protected OptionsIterator createSelectedAllIterator()
protected java.lang.String getHiddenFieldName(int groupIndex)
protected org.apache.ecs.ElementContainer doCreateHiddenFields()
protected java.lang.String addGroupIndex(java.lang.String styleId, int groupIndex)
protected org.apache.ecs.ConcreteElement doCreateSelectBox(int groupIndex)
groupIndex
- the index of the select box to create
protected java.lang.String imgRes(ControlButton type, boolean enabled)
type
- Button Typeenabled
- Indicates if the button is enabled or disables
protected org.apache.ecs.ConcreteElement doCreateAddAllButton(int groupIndex, boolean enabled)
enabled
- true if the Button is enabled
protected org.apache.ecs.ConcreteElement doCreateAddButton(int groupIndex, boolean enabled)
enabled
- true if the Button is enabled
protected org.apache.ecs.ConcreteElement doCreateRemoveButton(int groupIndex, boolean enabled)
enabled
- true if the Button is enabled
protected org.apache.ecs.ConcreteElement doCreateRemoveAllButton(int groupIndex, boolean enabled)
enabled
- true if the Button is enabled
protected org.apache.ecs.ConcreteElement doCreateMoveUpButton(int groupIndex, boolean enabled)
enabled
- true if the Button is enabled
protected org.apache.ecs.ConcreteElement doCreateMoveDownButton(int groupIndex, boolean enabled)
enabled
- true if the Button is enabled
protected java.util.Collection doCreateButtons(int groupIndex)
protected java.util.Collection doCreateMoveButtons(int groupIndex)
protected org.apache.ecs.html.Table createButtonTable(java.util.Collection buttons)
protected void doPaintHorizontal(org.apache.ecs.html.Table control)
control
- The resulting table elementprotected void doPaintVertical(org.apache.ecs.html.Table control)
control
- The resulting table elementprotected org.apache.ecs.ConcreteElement doCreateDisplayElement()
protected org.apache.ecs.ConcreteElement doCreateElement()
ControlPainter
doCreateElement
in class ControlPainter
ControlPainter.doCreateElement()
protected JavaScript doCreateScript()
protected java.lang.Object[] getValues()
protected java.lang.Object[] getValues(int groupIndex)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |