Methods Summary |
---|
public java.lang.String | getAccessKey()
String accessKey;
// Make sure that the access key is a single character.
accessKey = getAttribute( "accesskey" );
if ( accessKey != null && accessKey.length() > 1 )
accessKey = accessKey.substring( 0, 1 );
return accessKey;
|
public boolean | getDisabled()
return getBinary( "disabled" );
|
public java.lang.String | getName()
return getAttribute( "name" );
|
public int | getTabIndex()
try
{
return Integer.parseInt( getAttribute( "tabindex" ) );
}
catch ( NumberFormatException except )
{
return 0;
}
|
public java.lang.String | getType()
return capitalize( getAttribute( "type" ) );
|
public java.lang.String | getValue()
return getAttribute( "value" );
|
public void | setAccessKey(java.lang.String accessKey)
// Make sure that the access key is a single character.
if ( accessKey != null && accessKey.length() > 1 )
accessKey = accessKey.substring( 0, 1 );
setAttribute( "accesskey", accessKey );
|
public void | setDisabled(boolean disabled)
setAttribute( "disabled", disabled );
|
public void | setName(java.lang.String name)
setAttribute( "name", name );
|
public void | setTabIndex(int tabIndex)
setAttribute( "tabindex", String.valueOf( tabIndex ) );
|
public void | setValue(java.lang.String value)
setAttribute( "value", value );
|