|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.gwtext.client.widgets.Component com.gwtext.client.widgets.BoxComponent com.gwtext.client.widgets.Container com.gwtext.client.widgets.Panel com.gwtext.client.widgets.grid.GridPanel com.gwtext.client.widgets.grid.EditorGridPanel com.gwtext.client.widgets.grid.PropertyGridPanel
public class PropertyGridPanel
A specialized grid implementation intended to mimic the traditional property grid as typically seen in development IDEs. Each row in the grid represents a property of some object, and the data is stored as a set of name/value pairs
Field Summary |
---|
Fields inherited from class com.gwtext.client.widgets.Component |
---|
config, id |
Constructor Summary | |
---|---|
PropertyGridPanel()
Create a new PropertGridPanel. |
|
PropertyGridPanel(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
void |
addPropertyGridPanelListener(PropertyGridPanelListener listener)
Add a PropertGridPanel listener. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject configJS)
|
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
boolean |
isSorted()
True to render with properties initially sorted. |
void |
setCustomEditors(java.util.Map customEditors)
An object containing name/value pairs of custom editor type definitions that allow the grid to support additional types of editable fields. |
void |
setNameText(java.lang.String nameText)
The value of the property name text. |
void |
setSorted(boolean sorted)
True to render with properties initially sorted. |
void |
setSource(java.util.Map source)
Sets the source data object containing the property data. |
void |
setSource(NameValuePair[] source)
Sets the source data object containing the property data. |
Methods inherited from class com.gwtext.client.widgets.grid.EditorGridPanel |
---|
addEditorGridListener, getCellSelectionModel, getConfigPrototype, setAutoEncode, setClicksToEdit, startEditing, stopEditing |
Methods inherited from class com.gwtext.client.widgets.Container |
---|
add, add, add, add, addListener, bubble, cascade, clear, doLayout, doLayout, findBy, findByID, findByType, getActiveItem, getActiveItemID, getAutoDestroy, getBufferResize, getComponent, getComponent, getComponents, getHideBorders, getItems, getLayout, getMonitorResize, insert, iterator, remove, remove, remove, remove, removeAll, removeAll, setActiveItem, setActiveItemID, setAutoDestroy, setBufferResize, setDefaults, setHideBorders, setLayout, setMonitorResize |
Methods inherited from class com.gwtext.client.widgets.BoxComponent |
---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyGridPanel()
public PropertyGridPanel(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType
in class EditorGridPanel
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject configJS)
create
in class EditorGridPanel
public void addPropertyGridPanelListener(PropertyGridPanelListener listener)
listener
- the listener.public void setSource(NameValuePair[] source)
source
- the data sourcepublic void setSource(java.util.Map source)
source
- the data sourcepublic void setNameText(java.lang.String nameText) throws java.lang.IllegalStateException
nameText
- the property name text
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic boolean isSorted()
public void setSorted(boolean sorted)
sorted
- true to render with properties initially sorted.public void setCustomEditors(java.util.Map customEditors)
PropertyGridPanel grid = new PropertyGridPanel();
Map source = new HashMap();
source.put("Edit Time", "10:00 AM");
Map customEditors = new HashMap();
GridEditor timeEditor = new GridEditor(new TimeField());
customEditors.put("Edit Time", timeEditor);
grid.setCustomEditors(customEditors);
customEditors
- custom editors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |