net.sf.doolin.gui.field
Class FieldLabel<V>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
          extended by net.sf.doolin.gui.field.FieldLabel<V>
Type Parameters:
V - Type of object for the view
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FieldLabel<V>
extends AbstractFieldDescriptor<V>

JLabel field descriptor.

See Also:
Serialized Form

Constructor Summary
FieldLabel()
           
 
Method Summary
 Field<V> createField(GUIView<V> view)
          Creates a field.
 String getIconId()
          Gets the ID of the icon to associate with this label.
 String getText()
          Gets the text.
 void setIconId(String iconId)
          Sets the ID of the icon to associate with this label.
 void setText(String text)
          Expression that contains the text of the label
 
Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onInit, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldLabel

public FieldLabel()
Method Detail

createField

public Field<V> createField(GUIView<V> view)
Description copied from interface: FieldDescriptor
Creates a field.

Parameters:
view - Owning view
Returns:
Created field

getIconId

public String getIconId()
Gets the ID of the icon to associate with this label.

Returns:
Icon ID or null

getText

public String getText()
Gets the text.

Returns:
the text

setIconId

public void setIconId(String iconId)
Sets the ID of the icon to associate with this label.

Parameters:
iconId - Icon ID or null

setText

public void setText(String text)
Expression that contains the text of the label

Parameters:
text - the new text


Copyright © 2011. All Rights Reserved.