|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.NodeContainer
to.etc.domui.dom.html.InputNodeContainer
to.etc.domui.dom.html.Select
public class Select
INCOMPLETE A full-coded select box: this is unsuitable for large amount of options. Handling the selected item is incomplete.
Constructor Summary | |
---|---|
Select()
|
|
Select(java.lang.String... txt)
|
Method Summary | |
---|---|
boolean |
acceptRequestParameter(java.lang.String[] values)
|
void |
addExtraButton(java.lang.String img,
java.lang.String title,
IClicked<NodeBase> click)
Add a small image button after the combo. |
protected void |
canContain(NodeBase node)
Only allow SelectOption as child. |
void |
clearSelected()
Deprecated. |
SelectOption |
getOption(int ix)
|
int |
getSelectedIndex()
|
int |
getSize()
|
protected boolean |
internalOnUserInput(int oldindex,
int nindex)
Called when user input has changed the selected index. |
protected void |
internalSetSelectedIndex(int ix)
Fast way to set index without walking the option tree, to use if the subclass knows a faster way to set all option selected values. |
boolean |
isDisabled()
|
boolean |
isModified()
Returns the modified-by-user flag. |
boolean |
isMultiple()
|
void |
onAddedToPage(Page p)
|
void |
onRemoveFromPage(Page p)
|
void |
setDisabled(boolean disabled)
|
void |
setModified(boolean as)
Set or clear the modified by user flag. |
void |
setMultiple(boolean multiple)
|
void |
setReadOnly(boolean readOnly)
WARNING: The "select" node HAS NO READONLY!!! |
void |
setSelectedIndex(int ix)
Set the selected index - expensive because it has to walk all Option children and reset their selected attribute - O(n) runtime. |
void |
setSize(int size)
|
void |
visit(INodeVisitor v)
This must visit the appropriate method in the node visitor. |
Methods inherited from class to.etc.domui.dom.html.InputNodeContainer |
---|
callOnValueChanged, getOnValueChanged, isMandatory, isReadOnly, setMandatory, setOnValueChanged |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Select()
public Select(java.lang.String... txt)
Method Detail |
---|
public void visit(INodeVisitor v) throws java.lang.Exception
NodeBase
visit
in class InputNodeContainer
java.lang.Exception
protected void canContain(NodeBase node)
canContain
in class NodeContainer
NodeContainer.canContain(to.etc.domui.dom.html.NodeBase)
public boolean isMultiple()
public void setMultiple(boolean multiple)
public boolean isDisabled()
public void setDisabled(boolean disabled)
public int getSize()
public void setSize(int size)
public void setReadOnly(boolean readOnly)
setReadOnly
in class InputNodeContainer
InputNodeContainer.setReadOnly(boolean)
public SelectOption getOption(int ix)
public final boolean acceptRequestParameter(java.lang.String[] values) throws java.lang.Exception
acceptRequestParameter
in class NodeBase
java.lang.Exception
protected boolean internalOnUserInput(int oldindex, int nindex)
oldindex
- nindex
- @Deprecated public void clearSelected()
public int getSelectedIndex()
protected void internalSetSelectedIndex(int ix)
ix
- public void setSelectedIndex(int ix)
ix
- public void addExtraButton(java.lang.String img, java.lang.String title, IClicked<NodeBase> click)
img
- title
- clicked
- public void onAddedToPage(Page p)
onAddedToPage
in class NodeBase
public void onRemoveFromPage(Page p)
onRemoveFromPage
in class NodeBase
public final boolean isModified()
isModified
in interface IHasModifiedIndication
IHasModifiedIndication.isModified()
public final void setModified(boolean as)
setModified
in interface IHasModifiedIndication
IHasModifiedIndication.setModified(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |