|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cafesip.gwtcomp.client.ui.PropertyViewer
public class PropertyViewer
A panel for viewing properties. A property consists of two elements - a key and a value. This widget displays properties in a tabular format. Properties can be sorted if desired.
CSS Style Rules:
Screen-Shots:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
PropertyViewer()
A constructor for this class. |
|
PropertyViewer(boolean showHeader,
boolean allowSort)
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
addProperty(String key,
String value)
Add a property to be displayed. |
void |
addProperty(String key,
Widget widget)
Add a property to be displayed. |
void |
clear()
Clear the property list. |
String |
getKeyCaption()
Returns the caption for the Key column. |
String |
getValueCaption()
Returns the caption for the value column. |
void |
setKeyCaption(String keyCaption)
Sets the caption for the key column. |
void |
setProperties(HashMap<String,String> p)
Sets a list of properties using a HashMap object. |
void |
setValueCaption(String valueCaption)
Sets the caption for the value column. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyViewer(boolean showHeader,
boolean allowSort)
showHeader - true if the header is to be displayedallowSort - true if the sort icons are to be displayedpublic PropertyViewer()
| Method Detail |
|---|
public void addProperty(String key,
String value)
key - the property keyvalue - a string value
public void addProperty(String key,
Widget widget)
key - the property keywidget - a widget to be displayed as text (instead of a text)public void clear()
public void setProperties(HashMap<String,String> p)
p - the hashmap object. The key and the values for the hashmap
must be Strings.public String getKeyCaption()
public void setKeyCaption(String keyCaption)
keyCaption - The keyCaption to set.public String getValueCaption()
public void setValueCaption(String valueCaption)
valueCaption - The valueCaption to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||