net.sf.doolin.gui.field
Class FieldToggle<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.AbstractPropertyFieldDescriptor<V>
              extended by net.sf.doolin.gui.field.FieldToggle<V>
Type Parameters:
V - Type of object for the view
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FieldToggle<V>
extends AbstractPropertyFieldDescriptor<V>

JToggleButton field descriptor.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
FieldToggle()
           
 
Method Summary
 Field<V> createField(GUIView<V> view)
          Creates a field.
 String getIcon()
          Gets the icon ID associated with this button
 String getText()
          Gets the text.
 String getTip()
          Gets the tool tip text expression associated with this button.
 void setIcon(String icon)
          Sets the icon ID associated with this button
 void setText(String text)
          Sets the text.
 void setTip(String tip)
          Sets the tool tip text expression associated with this button.
 
Methods inherited from class net.sf.doolin.gui.field.AbstractPropertyFieldDescriptor
getAdapter, getProperty, getPropertyPath, setAdapter, setProperty, setPropertyPath, subscribe, subscribe
 
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

FieldToggle

public FieldToggle()
Method Detail

createField

public Field<V> createField(GUIView<V> view)
Creates a field..

Parameters:
view - the view
Returns:
the field< v>

getIcon

public String getIcon()
Gets the icon ID associated with this button

Returns:
Icon ID

getText

public String getText()
Gets the text.

Returns:
the text

getTip

public String getTip()
Gets the tool tip text expression associated with this button.

Returns:
Text expression

setIcon

public void setIcon(String icon)
Sets the icon ID associated with this button

Parameters:
icon - Icon ID

setText

public void setText(String text)
Sets the text.

Parameters:
text - the new text

setTip

public void setTip(String tip)
Sets the tool tip text expression associated with this button.

Parameters:
tip - Text expression


Copyright © 2011. All Rights Reserved.