org.dspace.app.xmlui.wing.element
Class Button
java.lang.Object
org.dspace.app.xmlui.wing.element.AbstractWingElement
org.dspace.app.xmlui.wing.element.Field
org.dspace.app.xmlui.wing.element.Button
- All Implemented Interfaces:
- StructuralElement, WingElement
public class Button
- extends Field
| Fields inherited from class org.dspace.app.xmlui.wing.element.Field |
A_DISABLED, A_FIELD_TYPE, A_REQUIRED, disabled, E_FIELD, errors, fields, help, instances, label, name, OPERATION_ADD, OPERATION_DELETE, OPERATIONS, options, params, rend, required, type, TYPE_BUTTON, TYPE_CHECKBOX, TYPE_COMPOSITE, TYPE_FILE, TYPE_HIDDEN, TYPE_PASSWORD, TYPE_RADIO, TYPE_SELECT, TYPE_TEXT, TYPE_TEXTAREA, TYPES, values |
|
Method Summary |
Value |
setValue()
Set the button's label, removing any previous label's |
void |
setValue(Message translated)
Set the button's label, removing any previous labels. |
void |
setValue(String characters)
Set the button's label, removing any previous label's |
| Methods inherited from class org.dspace.app.xmlui.wing.element.Field |
addError, addError, addError, dispose, removeValueOfType, setAuthorityControlled, setAuthorityControlled, setAuthorityRequired, setAuthorityRequired, setAutofocus, setChoices, setChoicesClosed, setChoicesClosed, setChoicesPresentation, setDisabled, setDisabled, setHelp, setHelp, setHelp, setLabel, setLabel, setLabel, setRequired, setRequired, toSAX |
| Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Button
protected Button(WingContext context,
String name,
String rend)
throws WingException
- Construct a new field.
- Parameters:
context - (Required) The context this element is contained in, such as
where to route SAX events and what i18n catalogue to use.name - (Required) a non-unique local identifier used to differentiate
the element from its siblings within an interactive division.
This is the name of the field use when data is submitted back
to the server.rend - (May be null) a rendering hint used to override the default
display of the element.
- Throws:
WingException
setValue
public Value setValue()
throws WingException
- Set the button's label, removing any previous label's
- Returns:
- A button label's value.
- Throws:
WingException
setValue
public void setValue(String characters)
throws WingException
- Set the button's label, removing any previous label's
- Parameters:
characters - (May be null) The button's label as a string.
- Throws:
WingException
setValue
public void setValue(Message translated)
throws WingException
- Set the button's label, removing any previous labels.
- Parameters:
translated - (Required) A key into the i18n catalogue for translation into
the user's preferred language.
- Throws:
WingException
Copyright © 2012 DuraSpace. All Rights Reserved.