net.sf.doolin.gui.display
Class DisplayStateHandlerUtils

java.lang.Object
  extended by net.sf.doolin.gui.display.DisplayStateHandlerUtils

public class DisplayStateHandlerUtils
extends Object

Utility methods for dealing with display states.

Author:
Damien Coraboeuf

Method Summary
static
<V> void
setupField(DisplayStateHandler displayStateHandler, Field<V> field, JComponent component)
          Sets the display state for a field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setupField

public static <V> void setupField(DisplayStateHandler displayStateHandler,
                                  Field<V> field,
                                  JComponent component)
Sets the display state for a field.

Type Parameters:
V - Type of the field
Parameters:
displayStateHandler - Display state handler to set
field - Field to set
component - Component for the field (it will receive the state)
See Also:
Field.getFieldDescriptor(), FieldDescriptor.setDisplayState(Field, JComponent, DisplayState)


Copyright © 2011. All Rights Reserved.