站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VariableInputComponent (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.util
Class VariableInputComponent

java.lang.Object
  extended byorg.netbeans.modules.vcscore.util.VariableInputComponent

public class VariableInputComponent
extends Object

The representation of component for variable input.


Constructor Summary
VariableInputComponent(int component, String variable, Class componentClass)
          Creates new VariableInputComponent
VariableInputComponent(int component, String variable, String label)
          Creates new VariableInputComponent
VariableInputComponent(int component, String variable, String label, String labelMnemonic)
          Creates new VariableInputComponent
 
Method Summary
 void addDisable(String varName)
           
 void addEnable(String varName)
           
 void addSubComponent(VariableInputComponent component)
           
 String getA11yDescription()
           
 String getA11yName()
           
 int getComponent()
           
 String getDefaultValue()
           
 Dimension getDimension()
           
 Set getDisable()
           
 Set getEnable()
           
 int getHistorySize()
           
 String getHistoryValue(int index)
           
 String getLabel()
           
 Character getLabelMnemonic()
           
 NestableInputComponent getNestableComponent(boolean newInstance)
          Instance of JCOMPONENT type of componnet otherwise null
 String getSelector()
           
 String[] getSelectorVarConditions()
           
 String getStyle()
           
 String getValidator()
           
 String getValue()
           
 String getValueSelected()
           
 String getValueUnselected()
           
 String[] getVarConditions()
           
 String getVariable()
           
 boolean isExpandableDefaultValue()
           
 boolean isExpert()
          If true component is vible in expert mode only.
 boolean isMultiLine()
           
 boolean isTrivial()
          If true commonent can be displayed in trivial mode only.
static boolean isVarConditionMatch(String[] varConditions, Map vars)
          Whether the given conditions are fulfilled for the gived map of variable values.
 boolean needsPreCommandPerform()
           
 void setA11yDescription(String description)
           
 void setA11yName(String name)
           
 void setDefaultValue(String defaultValue)
           
 void setDefaultValues()
           
 void setDimension(Dimension dimension)
           
 void setExpert(boolean expert)
           
 void setLabelMnemonic(String mnemonic)
           
 void setMultiLine(boolean multiLine)
           
 void setSelector(String selector)
           
 void setSelectorVarConditions(String[] varConditions)
           
 void setStyle(String style)
           
 void setTrivial(boolean trivial)
           
 void setValidator(String validator)
           
 void setValue(String value)
           
 void setValuesAsDefault()
           
 void setValueSelected(String valueSelected)
           
 void setValueUnselected(String valueUnselected)
           
 void setVarConditions(String[] varConditions)
           
 VariableInputComponent[] subComponents()
           
 String toString()
           
 VariableInputValidator validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableInputComponent

public VariableInputComponent(int component,
                              String variable,
                              String label)
Creates new VariableInputComponent


VariableInputComponent

public VariableInputComponent(int component,
                              String variable,
                              String label,
                              String labelMnemonic)
Creates new VariableInputComponent


VariableInputComponent

public VariableInputComponent(int component,
                              String variable,
                              Class componentClass)
Creates new VariableInputComponent

Method Detail

getComponent

public int getComponent()

getVariable

public String getVariable()

setVarConditions

public void setVarConditions(String[] varConditions)

getVarConditions

public String[] getVarConditions()

isVarConditionMatch

public static boolean isVarConditionMatch(String[] varConditions,
                                          Map vars)
Whether the given conditions are fulfilled for the gived map of variable values.

Parameters:
varConditions - the array of variables for empty and non-empty conditions.
vars - the map of variables and their values
Returns:
true when the test was successfull, or no conditions were defined, false otherwise

setExpert

public void setExpert(boolean expert)

isExpert

public boolean isExpert()
If true component is vible in expert mode only.


getLabel

public String getLabel()

setLabelMnemonic

public void setLabelMnemonic(String mnemonic)

getLabelMnemonic

public Character getLabelMnemonic()

setA11yName

public void setA11yName(String name)

getA11yName

public String getA11yName()

setA11yDescription

public void setA11yDescription(String description)

getA11yDescription

public String getA11yDescription()

setValue

public void setValue(String value)

getValue

public String getValue()

setValueSelected

public void setValueSelected(String valueSelected)

getValueSelected

public String getValueSelected()

setValueUnselected

public void setValueUnselected(String valueUnselected)

getValueUnselected

public String getValueUnselected()

setDefaultValue

public void setDefaultValue(String defaultValue)

getDefaultValue

public String getDefaultValue()

needsPreCommandPerform

public boolean needsPreCommandPerform()

isExpandableDefaultValue

public boolean isExpandableDefaultValue()

setValuesAsDefault

public void setValuesAsDefault()

setDefaultValues

public void setDefaultValues()

setDimension

public void setDimension(Dimension dimension)

getDimension

public Dimension getDimension()

isMultiLine

public boolean isMultiLine()

setMultiLine

public void setMultiLine(boolean multiLine)

addEnable

public void addEnable(String varName)

getEnable

public Set getEnable()

getDisable

public Set getDisable()

addDisable

public void addDisable(String varName)

setSelector

public void setSelector(String selector)

getSelector

public String getSelector()

setSelectorVarConditions

public void setSelectorVarConditions(String[] varConditions)

getSelectorVarConditions

public String[] getSelectorVarConditions()

setValidator

public void setValidator(String validator)

getValidator

public String getValidator()

validate

public VariableInputValidator validate()

setStyle

public void setStyle(String style)

getStyle

public String getStyle()

getHistorySize

public int getHistorySize()

getHistoryValue

public String getHistoryValue(int index)

addSubComponent

public void addSubComponent(VariableInputComponent component)

subComponents

public VariableInputComponent[] subComponents()

toString

public String toString()

setTrivial

public void setTrivial(boolean trivial)

isTrivial

public boolean isTrivial()
If true commonent can be displayed in trivial mode only.


getNestableComponent

public NestableInputComponent getNestableComponent(boolean newInstance)
Instance of JCOMPONENT type of componnet otherwise null


 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.