| java.lang.Object com.projity.dialog.util.ComponentFactory
ComponentFactory | public class ComponentFactory (Code) | | |
Method Summary | |
public static JComponent | componentFor(Field field, ObjectRef objectRef, int flag) Get the componenet to use for the field
Parameters: field - Parameters: objectRef - Parameters: flag - can be READ_ONLY to force the field as a label, or SOMETIMES_READ_ONLY, in which case the component willnot be a label even if the field is read only. | public static ExtDateField | createDateField() | public static ExtDateField | createDateField(Field field) | public static Object | getFieldValue(Field field, ObjectRef objectRef) | public static FieldDialog | getParentFieldDialog(Component c) | static JTextField | getSpinnerTextField(JSpinner spinner) | public static Object | getValueFromComponent(JComponent component, Field field) | static void | markComponentAsUnmodified(JComponent component) | public static void | setValueOfComponent(JComponent component, Object value, boolean readOnly) | public static void | updateValueOfComponent(JComponent component, Field field, ObjectRef objectRef) | static JComponent | verifiedComponent(JComponent component) |
READ_ONLY | final public static int READ_ONLY(Code) | | |
SOMETIMES_READ_ONLY | final public static int SOMETIMES_READ_ONLY(Code) | | |
ComponentFactory | public ComponentFactory()(Code) | | |
componentFor | public static JComponent componentFor(Field field, ObjectRef objectRef, int flag)(Code) | | Get the componenet to use for the field
Parameters: field - Parameters: objectRef - Parameters: flag - can be READ_ONLY to force the field as a label, or SOMETIMES_READ_ONLY, in which case the component willnot be a label even if the field is read only. value can also be 0 for default case |
markComponentAsUnmodified | static void markComponentAsUnmodified(JComponent component)(Code) | | |
setValueOfComponent | public static void setValueOfComponent(JComponent component, Object value, boolean readOnly)(Code) | | |
|
|