org.odftoolkit.simple.form
Class Label

java.lang.Object
  extended by org.odftoolkit.simple.Component
      extended by org.odftoolkit.simple.form.FormControl
          extended by org.odftoolkit.simple.form.Label

public class Label
extends FormControl

This class represents the form control of Label, provides methods to get/set the form properties and the style formatting of this control.

Since:
0.8

Field Summary
 
Fields inherited from class org.odftoolkit.simple.form.FormControl
drawingShape, formElement, mElement, mFormProperties
 
Method Summary
 String getId()
          Get the control id.
static Label getInstanceOf(FormFixedTextElement element)
          Get an instance of label by an instance of FormFixedTextElement, while searching the document content to make a bind with the DrawControl which already reference to this label.
 String getLabel()
          Get the text content of this label
 String getName()
          Get the control name.
static Iterator<FormControl> getSimpleIterator(Form container)
          Get a simple iterator for labels.
 void setControlImplementation(String controlImpl)
          Set the implementation of this control.
 void setId(String id)
          Set the control id.
 void setLabel(String label)
          Set the text content of this label
 void setName(String name)
          Set the control name.
 
Methods inherited from class org.odftoolkit.simple.form.FormControl
getDrawControl, getOdfElement, getRectangle, remove, setAnchorType, setFormProperty, setRectangle
 
Methods inherited from class org.odftoolkit.simple.Component
getComponentByElement, getOwnerDocument, registerComponent, unregisterComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstanceOf

public static Label getInstanceOf(FormFixedTextElement element)
Get an instance of label by an instance of FormFixedTextElement, while searching the document content to make a bind with the DrawControl which already reference to this label.

Parameters:
element - - an instance of FormFixedTextElement
Returns:
an instance of label

setControlImplementation

public void setControlImplementation(String controlImpl)
Description copied from class: FormControl
Set the implementation of this control.

Specified by:
setControlImplementation in class FormControl
Parameters:
controlImpl - - the implementation description of this control

getId

public String getId()
Description copied from class: FormControl
Get the control id.

Specified by:
getId in class FormControl
Returns:
the control id.

setId

public void setId(String id)
Description copied from class: FormControl
Set the control id.

Specified by:
setId in class FormControl
Parameters:
id - -the control id.

getName

public String getName()
Description copied from class: FormControl
Get the control name.

Specified by:
getName in class FormControl
Returns:
the control name.

setName

public void setName(String name)
Description copied from class: FormControl
Set the control name.

Specified by:
setName in class FormControl
Parameters:
name - - the control name.

setLabel

public void setLabel(String label)
Set the text content of this label

Parameters:
label - - the text content of this label

getLabel

public String getLabel()
Get the text content of this label

Returns:
the text content of this label

getSimpleIterator

public static Iterator<FormControl> getSimpleIterator(Form container)
Get a simple iterator for labels.

Parameters:
container - - an instance of form where to traverse the labels


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.