|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.util.VariableInputDescriptor
The descriptor of variable input components.
Method Summary | |
void |
addValuesToHistory()
|
VariableInputComponent[] |
components()
Get the array of components. |
static VariableInputDescriptor |
create(String label,
VariableInputComponent[] components)
Create a new VariableInputDescriptor. |
String |
getA11yDescription()
Get the accessibility description of this input descriptor. |
String |
getA11yName()
Get the accessibility name of this input descriptor. |
String |
getAutoFillVars()
Get the string representation of the auto fill variables |
String |
getHelpID()
Get the help ID that should be associated with the dialog. |
String |
getLabel()
Get the label of this input descriptor. |
String |
getStringInputItems()
Get the string representation of this VariableInputDescriptor. |
boolean |
hasDefaults(String commandName,
String commandProvider,
boolean expertMode)
Tests whether is make ssense to supprot writing dowm default for this descriptor. |
void |
loadDefaults(String commandName,
String commandProvider,
boolean expertMode)
Loads default values from disk into component values. |
static VariableInputDescriptor |
parseItems(String inputItems,
String[] resourceBundles)
Parse the string representation of components into the descriptor object. |
void |
setDefaultValues()
|
void |
setValuesAsDefault()
|
void |
storeDefaults(String commandName,
String commandProvider)
Stores component values to disk default values. |
String |
toString()
Get the string representation of this VariableInputDescriptor. |
VariableInputValidator |
validate()
Check, that the values of all nested components are valid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INPUT_LABEL
public static final int INPUT_ACCESSIBILITY
public static final int INPUT_A11Y
public static final int INPUT_PROMPT_FIELD
public static final int INPUT_PROMPT_AREA
public static final int INPUT_PROMPT_PASSWD
public static final int INPUT_ASK
public static final int INPUT_SELECT_RADIO
public static final int INPUT_RADIO_BTN
public static final int INPUT_SELECT_COMBO
public static final int INPUT_COMBO_ITEM
public static final int INPUT_GLOBAL
public static final int INPUT_SELECT_COMBO_EDITABLE
public static final int INPUT_TEXT
public static final int INPUT_HELP_ID
public static final int INPUT_AUTOFILL
public static final int INPUT_PROFILE_DEFAULTS
public static final int INPUT_JCOMPONENT
public static final String INPUT_STR_LABEL
public static final String INPUT_STR_AUTOFILL
public static final String INPUT_STR_PROFILE_DEFAULTS
VARIABLE_DEFAULTS(PRUNE_EMPTY USER, CREATE_DIRS USER)
.
There are couples: viable name and handling type:
public static final String INPUT_STR_JCOMPONENT
NestableInputComponent
. The syntax is:
JCOMPONENT(VARIABLE_NAME, package.className)
public static final String DEFAULTS_MODE_USER
public static final String DEFAULTS_MODE_EXPERT_USER
public static final String INPUT_STR_HELP_ID
public static final String INPUT_STR_PROMPT_FIELD
public static final String INPUT_STR_PROMPT_AREA
public static final String INPUT_STR_PROMPT_PASSWD
public static final String INPUT_STR_ASK
public static final String INPUT_STR_SELECT_RADIO
public static final String INPUT_STR_SELECT_COMBO
public static final String INPUT_STR_SELECT_COMBO_EDITABLE
public static final String INPUT_STR_TEXT
public static final String INPUT_STR_GLOBAL_PARAMS
public static final String INPUT_STR_GLOBAL_ALL_VARS
public static final String INPUT_IS_EXPERT
public static final String INPUT_IS_TRIVIAL
public static final String INPUT_STR_ENABLE
public static final String INPUT_STR_DISABLE
public static final String INPUT_STR_ACCESSIBILITY
public static final String INPUT_STR_A11Y
public static final String INPUT_STR_A11Y_NAME
public static final String INPUT_STR_A11Y_DESCRIPTION
public static final String INPUT_STR_MNEMONIC
public static final String INPUT_STR_A11Y_DELIMETER
public static final String SELECTOR
public static final String SELECTOR_FILE
public static final String SELECTOR_DIR
public static final String SELECTOR_DATE_CVS
public static final String SELECTOR_CMD
public static final String STYLE
public static final String STYLE_READ_ONLY
public static final String IF_VAR_NON_EMPTY_BEGIN
public static final String IF_VAR_NON_EMPTY_END
public static final String IF_VAR_EMPTY_BEGIN
public static final String IF_VAR_EMPTY_END
public static final char INPUT_STR_ARG_OPEN
public static final char INPUT_STR_ARG_CLOSE
public static final char INPUT_SELECT_STR_ARG_OPEN
public static final char INPUT_SELECT_STR_ARG_CLOSE
Method Detail |
public static VariableInputDescriptor create(String label, VariableInputComponent[] components)
label
- the label of that descriptorcomponents
- the components which this descriptor consists ofpublic static VariableInputDescriptor parseItems(String inputItems, String[] resourceBundles) throws VariableInputFormatException
inputItems
- the string representation of input componentsresourceBundles
- an optional array of resource bundles with localized messages
VariableInputFormatException
- when the parsed string contains some errorspublic String getLabel()
public String getA11yName()
public String getA11yDescription()
public String getHelpID()
public String getAutoFillVars()
public VariableInputComponent[] components()
public VariableInputValidator validate()
public void addValuesToHistory()
public void setValuesAsDefault()
public void setDefaultValues()
public String getStringInputItems()
public String toString()
public final void loadDefaults(String commandName, String commandProvider, boolean expertMode)
commandName
- identifies command in provider namespace or null
commandProvider
- identifies providerexpertMode
- true false is in simple mode then DEFAULTS_MODE_EXPERT_USER
stays unloadedpublic final void storeDefaults(String commandName, String commandProvider)
commandName
- identifies command in provider namespace or null
commandProvider
- identifies providerpublic final boolean hasDefaults(String commandName, String commandProvider, boolean expertMode)
commandName
- identifies command in provider namespace or null
commandProvider
- identifies providerexpertMode
- true false is in simple mode then DEFAULTS_MODE_EXPERT_USER
stays unloaded
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |