|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.config.tools.console.Field com.gridsystems.config.modules.tomcat.ConnectorField
public class ConnectorField
Type description.
Field Summary |
---|
Fields inherited from class com.gridsystems.config.tools.console.Field |
---|
bundle |
Constructor Summary | |
---|---|
ConnectorField(java.util.ResourceBundle bundle,
Connector c,
int index,
java.lang.String keyMap)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
execute(ConsoleConfiguratorView view)
Performs a task related to the specified view. |
Connector |
getConnector()
Gets the wrapped connector instance. |
java.lang.String[] |
getContents()
Gets the contents of this field. |
java.lang.String |
getKeyMapping()
Gets the keyMap to use for this instance. |
protected java.lang.String |
readLine(java.lang.String prompt,
java.lang.String defValue)
Reads a line of text from the console. |
void |
setIndex(int i)
Sets the index of this instance. |
Methods inherited from class com.gridsystems.config.tools.console.Field |
---|
getString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectorField(java.util.ResourceBundle bundle, Connector c, int index, java.lang.String keyMap)
bundle
- the bundle for i18nc
- the connector to editindex
- the subindexkeyMap
- the "container" keymapMethod Detail |
---|
public Connector getConnector()
public void setIndex(int i)
i
- the new indexpublic java.lang.String[] getContents()
getContents
in class Field
public java.lang.String getKeyMapping()
Instances of this class will be presented as list items. Each instance will build its keyMap from a combination of the "parent keyMap", and an "index" with its position in the list. Gets the key mapping of this action.
getKeyMapping
in interface ConsoleViewAction
public boolean execute(ConsoleConfiguratorView view)
execute
in interface ConsoleViewAction
view
- The view invoking the execution
protected java.lang.String readLine(java.lang.String prompt, java.lang.String defValue) throws java.io.IOException
prompt
- The prompt to showdefValue
- The default text for empty lines
java.io.IOException
- If an error occurs while reading from the console
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |