| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xulux.gui.XuluxWidget
org.xulux.gui.ContainerWidget
org.xulux.guilayer.swing.widgets.Table
public class Table
A nyx table.. A nyx table can do without a popupmenu field and can add a menuitem directly to its table.
| Field Summary | |
|---|---|
| protected  NyxTableColumnModel | columnModelThe columnModel | 
| protected  java.lang.Object | contentThe content of the table | 
| protected  boolean | contentChangedhas the contentchanged ? | 
| protected  NyxTableCellEditor | editorthe celleditor | 
| protected  boolean | hasChildPopupsdoes the table have childpopups | 
| protected  NyxJTable | lockedTableThe native locked table | 
| protected  org.xulux.api.gui.IWidget | menuThe table context menu | 
| protected  NyxTableModel | modelThe tablemodel | 
| protected  NewSelectionListener | newSelectionListenerthe new selection listener | 
| protected  javax.swing.JScrollPane | scrollPaneThis is the native widget | 
| protected  NyxJTable | tableThe native swing table | 
| Fields inherited from class org.xulux.gui.ContainerWidget | 
|---|
| widgets | 
| Fields inherited from class org.xulux.gui.XuluxWidget | 
|---|
| initialized, initializing, isRefreshing, log, previousValue, properties, value, visible | 
| Constructor Summary | |
|---|---|
| Table(java.lang.String name) | |
| Method Summary | |
|---|---|
|  void | addToParent(org.xulux.api.gui.IWidget widget) | 
|  void | addXuluxListener(org.xulux.api.gui.IXuluxListener listener) | 
|  boolean | canContainValue() | 
|  void | contentChanged() | 
|  void | destroy() | 
|  void | destroyTable()Destroys the current table | 
|  void | focus() | 
|  java.lang.Object | getContent() | 
|  java.lang.Object | getGuiValue() | 
|  javax.swing.JTable | getJTable()Remove this one.. | 
|  javax.swing.JTable | getLockedJTable() | 
|  java.lang.Object | getMouseOverValue() | 
|  java.lang.Object | getNativeWidget() | 
|  java.lang.Object | getValue() | 
|  void | initialize() | 
| protected  void | initializeContent()Initializes the content when the property content and content.type is present | 
| protected  boolean | initializeUpdateButtons()Initializes the popupmenus of the table. | 
|  boolean | isValueEmpty() | 
|  void | refresh() | 
|  void | refreshUpdateButtons()Refreshes the update buttons. | 
|  void | setContent(java.lang.Object object)Set the content of the table | 
|  void | setValue(java.lang.Object value)Sets the current selected value in the table. | 
|  void | stopEditing()Stop editing the table if currently editing. | 
| Methods inherited from class org.xulux.gui.ContainerWidget | 
|---|
| addChildWidget, canBeRootWidget, canContainChildren, destroyChildren, getChildWidgets, getWidgetInitializer, initializeChildren | 
| Methods inherited from class org.xulux.gui.XuluxWidget | 
|---|
| addDependency, addPropertyHandler, addPropertyHandler, clear, equals, getDependencies, getField, getName, getParent, getPart, getPrefix, getPreviousValue, getProperties, getProperty, getPropertyHandler, getPropertyHandlers, getProvider, getRealProperty, getRealValue, getRectangle, getRules, getWidgetType, handleProperties, handleProperty, hasDependencies, ignoreLayout, ignoreUse, isEnabled, isImmidiate, isInitializing, isRefreshing, isRequired, isRootWidget, isSkip, isUseIgnored, isValidValue, isVisible, notifyListeners, processDestroy, processInit, processNativeWidget, registerRule, removeAllRules, setAutoRefresh, setContainerWidgetHandler, setEnabled, setField, setImmidiate, setLazyProperty, setName, setParent, setPart, setPosition, setPrefix, setProperty, setProvider, setRequired, setRootWidget, setSize, setSkip, setValidValue, setVisible, setWidgetInitializer, setWidgetType, toString, updateWidget | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected NyxJTable table
protected NyxJTable lockedTable
protected javax.swing.JScrollPane scrollPane
protected org.xulux.api.gui.IWidget menu
protected boolean hasChildPopups
protected java.lang.Object content
protected boolean contentChanged
protected NyxTableColumnModel columnModel
protected NyxTableModel model
protected NyxTableCellEditor editor
protected NewSelectionListener newSelectionListener
| Constructor Detail | 
|---|
public Table(java.lang.String name)
name - the name of the table| Method Detail | 
|---|
public void destroyTable()
public void destroy()
destroy in interface org.xulux.api.gui.IContainerWidgetHandlerdestroy in interface org.xulux.api.gui.IWidgetdestroy in class org.xulux.gui.ContainerWidgetIWidget.destroy()public java.lang.Object getNativeWidget()
getNativeWidget in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#getNativeWidget()public void initialize()
initialize in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#initialize()public void refresh()
refresh in interface org.xulux.api.gui.IWidgetrefresh in class org.xulux.gui.XuluxWidgetorg.xulux.nyx.gui.XuluxWidget#refresh()public java.lang.Object getGuiValue()
getGuiValue in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#getGuiValue()public java.lang.Object getMouseOverValue()
public void focus()
focus in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#focus()public void addToParent(org.xulux.api.gui.IWidget widget)
addToParent in interface org.xulux.api.gui.IContainerWidgetHandlerorg.xulux.nyx.gui.ContainerWidget#addToParent(org.xulux.nyx.gui.XuluxWidget)public boolean canContainValue()
canContainValue in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#canContainValue()public boolean isValueEmpty()
isValueEmpty in interface org.xulux.api.gui.IWidgetorg.xulux.nyx.gui.XuluxWidget#isValueEmpty()protected void initializeContent()
public void refreshUpdateButtons()
protected boolean initializeUpdateButtons()
public java.lang.Object getContent()
getContent in interface org.xulux.api.gui.IContentWidgetpublic void setContent(java.lang.Object object)
setContent in interface org.xulux.api.gui.IContentWidgetobject - the contentpublic javax.swing.JTable getJTable()
public javax.swing.JTable getLockedJTable()
public void addXuluxListener(org.xulux.api.gui.IXuluxListener listener)
addXuluxListener in interface org.xulux.api.gui.IWidgetaddXuluxListener in class org.xulux.gui.XuluxWidgetorg.xulux.nyx.gui.XuluxWidget#addXuluxListener(org.xulux.nyx.gui.XuluxListener)public void setValue(java.lang.Object value)
setValue in interface org.xulux.api.gui.IWidgetsetValue in class org.xulux.gui.XuluxWidgetorg.xulux.nyx.gui.XuluxWidget#setValue(java.lang.Object)public java.lang.Object getValue()
getValue in interface org.xulux.api.gui.IWidgetgetValue in class org.xulux.gui.XuluxWidgetorg.xulux.nyx.gui.XuluxWidget#getValue()public void stopEditing()
public void contentChanged()
contentChanged in interface org.xulux.api.gui.IContentWidgetorg.xulux.nyx.gui.IContentWidget#contentChanged()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||