|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.meta.swing.AbstractPropertyUI
org.progeeks.meta.swing.AbstractPropertyEditor
org.progeeks.meta.swing.editor.TableUI
public class TableUI
An editor/renderer implementation for a List of meta-objects that can be displayed in a JTable.
| Constructor Summary | |
|---|---|
TableUI(MetaPropertyContext viewContext)
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
addItem()
Called to add a new item by interacting with the user. |
protected java.lang.Object |
editItem(int i,
java.lang.Object value)
Called to edit an object of the specified index and value. |
java.awt.Component |
getUIComponent()
Returns the component that allows modification of the associated property mutator. |
boolean |
hasAddButton()
Returns true if the dialog should have an add button if the property mutator supports it. |
boolean |
hasEditButton()
Returns true if the dialog should have an edit button if the property mutator supports it. |
boolean |
hasRemoveButton()
Returns true if the dialog should have a remove button if the property mutator supports it. |
boolean |
isSingleColumn()
Returns false since lists should be full-width controls. |
protected void |
propertyChanged(java.beans.PropertyChangeEvent event)
Called when the value contained in the mutator changes. |
protected void |
releaseComponent()
Implemented by subclasses to release any component-related resources. |
protected java.lang.Object |
removeItem(int i)
Called to remove the item at the specified index. |
protected void |
resetComponentValue()
Called to set the component value to a default state. |
protected void |
setComponentValue(java.lang.Object value)
Called to set the current value displayed in the component. |
void |
setPropertyMutator(PropertyMutator mutator)
Intercepted to configure the list panel to most appropriately modify the list. |
| Methods inherited from class org.progeeks.meta.swing.AbstractPropertyEditor |
|---|
flushEdits |
| Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI |
|---|
getPropertyMutator, getViewContext, initializeView, isLabeled, release, setPropertyValue, setupToolTipText, terminateView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.progeeks.meta.swing.MetaPropertyUI |
|---|
getViewContext, initializeView, isLabeled, release |
| Constructor Detail |
|---|
public TableUI(MetaPropertyContext viewContext)
| Method Detail |
|---|
public boolean hasEditButton()
public boolean hasRemoveButton()
public boolean hasAddButton()
public void setPropertyMutator(PropertyMutator mutator)
setPropertyMutator in interface MetaPropertyUIsetPropertyMutator in class AbstractPropertyUIpublic boolean isSingleColumn()
isSingleColumn in interface MetaPropertyUIisSingleColumn in class AbstractPropertyUIpublic java.awt.Component getUIComponent()
getUIComponent in interface MetaPropertyUIgetUIComponent in class AbstractPropertyUIprotected void releaseComponent()
releaseComponent in class AbstractPropertyEditorprotected void setComponentValue(java.lang.Object value)
setComponentValue in class AbstractPropertyUIprotected void resetComponentValue()
resetComponentValue in class AbstractPropertyUIprotected void propertyChanged(java.beans.PropertyChangeEvent event)
propertyChanged in class AbstractPropertyUIprotected java.lang.Object addItem()
protected java.lang.Object editItem(int i,
java.lang.Object value)
protected java.lang.Object removeItem(int i)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||