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

VcsConfigVariable (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore
Class VcsConfigVariable

java.lang.Object
  extended byorg.netbeans.modules.vcscore.VcsConfigVariable
All Implemented Interfaces:
Cloneable, Comparable, Serializable

public class VcsConfigVariable
extends Object
implements Cloneable, Serializable, Comparable

See Also:
Serialized Form

Constructor Summary
VcsConfigVariable(String name, String label, String value, boolean basic, boolean localFile, boolean localDir, String customSelector)
          Creates new VcsConfigVariable with zero order.
VcsConfigVariable(String name, String label, String value, boolean basic, boolean localFile, boolean localDir, String customSelector, int order)
          Creates new VcsConfigVariable
 
Method Summary
 Object clone()
           
 int compareTo(Object o)
          Compares this object with the specified object for order.
 String getA11yDescription()
           
 String getA11yName()
           
 String getCustomSelector()
           
 String getLabel()
           
 Character getLabelMnemonic()
           
 String getName()
           
 int getOrder()
           
 String getValue()
           
 boolean isBasic()
           
 boolean isExecutable()
           
 boolean isLocalDir()
           
 boolean isLocalFile()
           
 void setA11yDescription(String a11yDescription)
           
 void setA11yName(String a11yName)
           
 void setBasic(boolean basic)
           
 void setCustomSelector(String customSelector)
           
 void setExecutable(boolean executable)
           
 void setLabel(String label)
           
 void setLabelMnemonic(Character labelMnemonic)
           
 void setLocalDir(boolean localDir)
           
 void setLocalFile(boolean localFile)
           
 void setName(String name)
           
 void setOrder(int order)
           
 void setValue(String value)
           
static Vector sortVariables(Vector variables)
          Sort a vector of commands or variables by the orderArr property.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VcsConfigVariable

public VcsConfigVariable(String name,
                         String label,
                         String value,
                         boolean basic,
                         boolean localFile,
                         boolean localDir,
                         String customSelector)
Creates new VcsConfigVariable with zero order.

Parameters:
name - the variable name
label - the label of that variable in the Customizer
value - the value of this variable
basic - whether this variable is basic or not. Basic variables can be set in the Customizer.
localFile - whether this variable is a local file. Browse buttom will be created for this variable.
localDir - whether this variable is a local directory. Browse buttom will be created for this variable.
customSelector - the custom selector for this variable. It can be a subclass of VcsAdditionalCommand or an executable.

VcsConfigVariable

public VcsConfigVariable(String name,
                         String label,
                         String value,
                         boolean basic,
                         boolean localFile,
                         boolean localDir,
                         String customSelector,
                         int order)
Creates new VcsConfigVariable

Parameters:
name - the variable name
label - the label of that variable in the Customizer
value - the value of this variable
basic - whether this variable is basic or not. Basic variables can be set in the Customizer.
localFile - whether this variable is a local file. Browse buttom will be created for this variable.
localDir - whether this variable is a local directory. Browse buttom will be created for this variable.
customSelector - the custom selector for this variable. It can be a subclass of VcsAdditionalCommand or an executable.
order - the order of this variable in the Customizer.
Method Detail

getName

public String getName()

setName

public void setName(String name)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getLabelMnemonic

public Character getLabelMnemonic()

setLabelMnemonic

public void setLabelMnemonic(Character labelMnemonic)

getA11yName

public String getA11yName()

setA11yName

public void setA11yName(String a11yName)

getA11yDescription

public String getA11yDescription()

setA11yDescription

public void setA11yDescription(String a11yDescription)

getValue

public String getValue()

setValue

public void setValue(String value)

isBasic

public boolean isBasic()

setBasic

public void setBasic(boolean basic)

isLocalFile

public boolean isLocalFile()

setLocalFile

public void setLocalFile(boolean localFile)

isLocalDir

public boolean isLocalDir()

setLocalDir

public void setLocalDir(boolean localDir)

isExecutable

public boolean isExecutable()

setExecutable

public void setExecutable(boolean executable)

getCustomSelector

public String getCustomSelector()

setCustomSelector

public void setCustomSelector(String customSelector)

setOrder

public void setOrder(int order)

getOrder

public int getOrder()

toString

public String toString()

clone

public Object clone()

sortVariables

public static Vector sortVariables(Vector variables)
Sort a vector of commands or variables by the orderArr property.

Returns:
new sorted vector of commands or variables

compareTo

public int compareTo(Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

This implementation makes basic variables smaller than non-basic, otherwise variables are compared by their names.

Specified by:
compareTo in interface Comparable

 

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