org.openengsb.ui.common.editor
Class AttributeEditorUtil

java.lang.Object
  extended by org.openengsb.ui.common.editor.AttributeEditorUtil

public final class AttributeEditorUtil
extends java.lang.Object

common utility-functions for creating Forms to edit properties of beans.


Method Summary
static AbstractField<?> createEditorField(java.lang.String id, org.apache.wicket.model.IModel<java.lang.String> model, AttributeDefinition attribute)
          creates a single EditorField for the given attribute
static AbstractField<?> createEditorField(java.lang.String id, org.apache.wicket.model.IModel<java.lang.String> model, AttributeDefinition attribute, boolean editable)
          creates a single EditorField for the given attribute
static org.apache.wicket.markup.repeater.RepeatingView createFieldList(java.lang.String id, java.lang.Class<?> bean, java.util.Map<java.lang.String,java.lang.String> values)
          creates a RepeatingView providing a suitable editor field for every property.
static org.apache.wicket.markup.repeater.RepeatingView createFieldList(java.lang.String id, java.util.List<AttributeDefinition> attributes, java.util.Map<java.lang.String,java.lang.String> values)
          creates a RepeatingView providing a suitable editor field for every attribute in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFieldList

public static org.apache.wicket.markup.repeater.RepeatingView createFieldList(java.lang.String id,
                                                                              java.lang.Class<?> bean,
                                                                              java.util.Map<java.lang.String,java.lang.String> values)
creates a RepeatingView providing a suitable editor field for every property.

Parameters:
values - map used for saving the data @see org.openengsb.ui.common.wicket.model.MapModel

createFieldList

public static org.apache.wicket.markup.repeater.RepeatingView createFieldList(java.lang.String id,
                                                                              java.util.List<AttributeDefinition> attributes,
                                                                              java.util.Map<java.lang.String,java.lang.String> values)
creates a RepeatingView providing a suitable editor field for every attribute in the list.

Parameters:
values - map used for saving the data @see org.openengsb.ui.common.wicket.model.MapModel

createEditorField

public static AbstractField<?> createEditorField(java.lang.String id,
                                                 org.apache.wicket.model.IModel<java.lang.String> model,
                                                 AttributeDefinition attribute)
creates a single EditorField for the given attribute


createEditorField

public static AbstractField<?> createEditorField(java.lang.String id,
                                                 org.apache.wicket.model.IModel<java.lang.String> model,
                                                 AttributeDefinition attribute,
                                                 boolean editable)
creates a single EditorField for the given attribute



Copyright © 2009-2011. All Rights Reserved.