public class PropertyGrid extends Object implements org.fujion.ancillary.IAutoWired
| Constructor and Description |
|---|
PropertyGrid() |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyEditorBase<?> |
addPropertyEditor(PropertyInfo propInfo,
boolean append)
Adds a property editor to the grid for the specified property definition.
|
void |
afterInitialized(org.fujion.component.BaseComponent comp)
Initializes the property grid.
|
protected boolean |
commitChanges(boolean commit)
Commit or revert all pending changes to the target object.
|
static PropertyGrid |
create(ElementBase target,
org.fujion.component.BaseComponent parent)
Creates a property grid for the given target UI element.
|
static PropertyGrid |
create(ElementBase target,
org.fujion.component.BaseComponent parent,
boolean embedded)
Creates a property grid for the given target UI element.
|
PropertyEditorBase<?> |
findEditor(String propName,
boolean select)
Returns the editor associated with the named property, or null if none found.
|
int |
getEditorCount()
Returns number of editors in this property grid.
|
boolean |
getPropertiesModified() |
Object |
getTarget()
Returns the target object.
|
org.fujion.component.Window |
getWindow() |
boolean |
hasPendingChanges()
Returns true if there are uncommitted edits.
|
void |
propertyChanged() |
void |
setTarget(ElementBase target)
Sets the target UI element for the property grid.
|
void |
setTarget(Object target,
List<PropertyInfo> props,
String title)
Sets the target object for the property grid.
|
public static PropertyGrid create(ElementBase target, org.fujion.component.BaseComponent parent)
target - UI element whose properties are to be edited.parent - Parent component for property grid (may be null).public static PropertyGrid create(ElementBase target, org.fujion.component.BaseComponent parent, boolean embedded)
target - UI element whose properties are to be edited.parent - Parent component for property grid (may be null).embedded - If true, the property grid is embedded within another component.public void afterInitialized(org.fujion.component.BaseComponent comp)
afterInitialized in interface org.fujion.ancillary.IAutoWiredcomp - The root component.public org.fujion.component.Window getWindow()
public void setTarget(ElementBase target)
target - UI element whose properties are to be edited.public void setTarget(Object target, List<PropertyInfo> props, String title)
target - Object whose properties are to be edited.props - Property list.title - Title for editor.protected PropertyEditorBase<?> addPropertyEditor(PropertyInfo propInfo, boolean append)
propInfo - Property definition information.append - If true, the property editor is appended to the end of the grid. Otherwise, it
is inserted at the beginning.protected boolean commitChanges(boolean commit)
commit - True to commit. False to revert.public PropertyEditorBase<?> findEditor(String propName, boolean select)
propName - The property name.select - If true, select editor's the containing row.public int getEditorCount()
public boolean hasPendingChanges()
public boolean getPropertiesModified()
public Object getTarget()
public void propertyChanged()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.