| java.lang.Object com.javelin.swinglets.SComponent com.javelin.swinglets.STable
All known Subclasses: com.javelin.swinglets.plaf.html.HTMLImageTabbedCellRenderer, com.javelin.examples.swinglets.DemoTable,
STable | public class STable extends SComponent (Code) | | STable defines a table.
author: Robin Sharp |
Inner Class :public class Cell extends Object | |
Constructor Summary | |
public | STable(int numRows, int numColumns) Creates a STable. | public | STable() Creates a STable with a swing table model, with no model. | public | STable(TableModel model) |
Method Summary | |
public SIcon | getBackgroundIcon() Get Table cell renderer. | public SIcon | getBackgroundIconAt(int row, int column) Get the background icon at the specified row and column. | public Dimension | getCellSpanAt(int row, int column) Get the cell span at the specified row and column. | public int | getColumnCount() | public SComponent | getComponent(String name) Get a sub component by name. | public int | getGridWidth() Get the grid width. | public int | getHorizontalAlignmentAt(int column) Get the horizontal alignment at the specified row and column. | public int | getHorizontalAlignmentAt(int row, int column) Get the horizontal alignment at the specified row and column. | public Dimension | getIntercellPadding() Get the intercell padding. | public Dimension | getIntercellSpacing() Get the intercell spacing. | public TableModel | getModel() Get Model. | public boolean | getNoWrapAt(int row, int column) Get the no wrap at the specified row and column. | public int | getRowCount() | public STableCellRenderer | getTableCellRenderer() Get Table cell renderer, for the current look and feel. | public STableCellRenderer | getTableCellRenderer(String lookAndFeel) Get Table cell renderer, or null. | public STableFooter | getTableFooter() Get the table footer. | public STableHeader | getTableHeader() Get the table header. | public Class | getUIClass() Returns the name of the class for L&F of this component. | public Object | getValueAt(int row, int column) Get the value at the specified row and column. | public int | getVerticalAlignmentAt(int row, int column) Get the vertical lignment at the specified row and column. | public boolean | isNoWrap() Check whether this table not wrapped. | protected void | processEvent(AWTEvent event) Processes events occurring on this component. | public STable | setBackgroundIcon(SIcon backgroundIcon) Set the background icon. | public STable | setBackgroundIconAt(SIcon icon, int row, int column) Set the background icon at the specified row and column. | public STable | setCellSpanAt(Dimension dimension, int row, int column) Set the cellspans at the specified row and column. | public STable | setGridWidth(int gridWidth) Set the grid width. | public STable | setHorizontalAlignmentAt(int alignment, int column) Set the horizontal alignment at the specified column. | public STable | setHorizontalAlignmentAt(int alignment, int row, int column) Set the horizontal alignment at the specified row and column. | public STable | setIntercellPadding(Dimension intercellPadding) Set the intercell padding. | public STable | setIntercellSpacing(Dimension intercellSpacing) Set the intercell spacing. | public SComponent | setLookAndFeel(SLookAndFeel lookAndFeel) | public STable | setModel(TableModel model) Set Model. | public STable | setNoWrap(boolean noWrap) Set whether this table not wrapped. | public STable | setNoWrapAt(boolean noWrap, int row, int column) Set the no wrap at the specified row and column. | public STable | setTableCellRenderer(STableCellRenderer tableCellRenderer) Set Table cell renderer for the current look and feel. | public STable | setTableCellRenderer(String lookAndFeel, STableCellRenderer tableCellRenderer) Set Table cell renderer for each look and feel. | public STable | setTableFooter(STableFooter tableFooter) Set the table footer. | public STable | setTableHeader(STableHeader tableHeader) Set the table header. | public STable | setValueAt(Object value, int row, int column) Set the value at the specified row and column. | public STable | setVerticalAlignmentAt(int alignment, int row, int column) Set the vertical alignment at the specified row and column. |
gridWidth | protected int gridWidth(Code) | | |
noWrap | protected boolean noWrap(Code) | | |
STable | public STable(int numRows, int numColumns)(Code) | | Creates a STable.
|
STable | public STable()(Code) | | Creates a STable with a swing table model, with no model.
|
STable | public STable(TableModel model)(Code) | | Creates a STable with a swing table model
|
getBackgroundIcon | public SIcon getBackgroundIcon()(Code) | | Get Table cell renderer.
|
getBackgroundIconAt | public SIcon getBackgroundIconAt(int row, int column)(Code) | | Get the background icon at the specified row and column.
|
getCellSpanAt | public Dimension getCellSpanAt(int row, int column)(Code) | | Get the cell span at the specified row and column.
|
getColumnCount | public int getColumnCount()(Code) | | Get the column count
|
getComponent | public SComponent getComponent(String name)(Code) | | Get a sub component by name. This will descend the component
hierarchy and return the SComponent, or null.
|
getGridWidth | public int getGridWidth()(Code) | | Get the grid width.
|
getHorizontalAlignmentAt | public int getHorizontalAlignmentAt(int column)(Code) | | Get the horizontal alignment at the specified row and column.
|
getHorizontalAlignmentAt | public int getHorizontalAlignmentAt(int row, int column)(Code) | | Get the horizontal alignment at the specified row and column.
|
getIntercellPadding | public Dimension getIntercellPadding()(Code) | | Get the intercell padding.
|
getIntercellSpacing | public Dimension getIntercellSpacing()(Code) | | Get the intercell spacing.
|
getNoWrapAt | public boolean getNoWrapAt(int row, int column)(Code) | | Get the no wrap at the specified row and column.
|
getRowCount | public int getRowCount()(Code) | | Get the row count
|
getTableCellRenderer | public STableCellRenderer getTableCellRenderer()(Code) | | Get Table cell renderer, for the current look and feel.
|
getTableCellRenderer | public STableCellRenderer getTableCellRenderer(String lookAndFeel)(Code) | | Get Table cell renderer, or null.
If a renderer has not been installed for the look and feel, it is.
picked up from the LookAndFeel as SLookAndFeel.TABLE_DEFAULT_CELL_RENDERER.
|
getTableFooter | public STableFooter getTableFooter()(Code) | | Get the table footer. This defaults to null, and a table footer will
not show in the table.
|
getTableHeader | public STableHeader getTableHeader()(Code) | | Get the table header. This defaults to null, and a table header will
not show in the table.
|
getUIClass | public Class getUIClass()(Code) | | Returns the name of the class for L&F of this component.
|
getValueAt | public Object getValueAt(int row, int column)(Code) | | Get the value at the specified row and column.
|
getVerticalAlignmentAt | public int getVerticalAlignmentAt(int row, int column)(Code) | | Get the vertical lignment at the specified row and column.
|
isNoWrap | public boolean isNoWrap()(Code) | | Check whether this table not wrapped.
|
processEvent | protected void processEvent(AWTEvent event)(Code) | | Processes events occurring on this component.
If the property STableHeader.SOURCE_COLUMN is set
then pass an ActionEvent to the tableHeader, with
an id set to the column number.
|
setBackgroundIcon | public STable setBackgroundIcon(SIcon backgroundIcon)(Code) | | Set the background icon.
|
setBackgroundIconAt | public STable setBackgroundIconAt(SIcon icon, int row, int column)(Code) | | Set the background icon at the specified row and column.
|
setCellSpanAt | public STable setCellSpanAt(Dimension dimension, int row, int column)(Code) | | Set the cellspans at the specified row and column.
|
setGridWidth | public STable setGridWidth(int gridWidth)(Code) | | Set the grid width.
|
setHorizontalAlignmentAt | public STable setHorizontalAlignmentAt(int alignment, int column)(Code) | | Set the horizontal alignment at the specified column.
One of SConstants DEFAULT, LEFT, CENTER, RIGHT.
|
setHorizontalAlignmentAt | public STable setHorizontalAlignmentAt(int alignment, int row, int column)(Code) | | Set the horizontal alignment at the specified row and column.
One of SConstants DEFAULT, LEFT, CENTER, RIGHT.
|
setIntercellPadding | public STable setIntercellPadding(Dimension intercellPadding)(Code) | | Set the intercell padding.
|
setIntercellSpacing | public STable setIntercellSpacing(Dimension intercellSpacing)(Code) | | Set the intercell spacing.
|
setNoWrap | public STable setNoWrap(boolean noWrap)(Code) | | Set whether this table not wrapped.
|
setNoWrapAt | public STable setNoWrapAt(boolean noWrap, int row, int column)(Code) | | Set the no wrap at the specified row and column.
|
setTableCellRenderer | public STable setTableCellRenderer(STableCellRenderer tableCellRenderer)(Code) | | Set Table cell renderer for the current look and feel.
|
setValueAt | public STable setValueAt(Object value, int row, int column)(Code) | | Set the value at the specified row and column.
|
setVerticalAlignmentAt | public STable setVerticalAlignmentAt(int alignment, int row, int column)(Code) | | Set the vertical alignment at the specified row and column.
One of SConstants DEFAULT, TOP, MIDDLE, BOTTOM.
|
Methods inherited from com.javelin.swinglets.SComponent | public SComponent addActionListener(ActionListener l)(Code)(Java Doc) public SComponent addComponentListener(ComponentListener listener)(Code)(Java Doc) public SComponent addFocusListener(FocusListener listener)(Code)(Java Doc) public SComponent addKeyListener(KeyListener listener)(Code)(Java Doc) public SComponent addMouseListener(MouseListener listener)(Code)(Java Doc) public SComponent addMouseMotionListener(MouseMotionListener listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized SComponent addPropertyChangeListener(PropertyChangeListener listener) throws TooManyListenersException(Code)(Java Doc) public synchronized SComponent addPropertyChangeListener(String propertyName, PropertyChangeListener listener) throws TooManyListenersException(Code)(Java Doc) public SComponent addScript(SScript script)(Code)(Java Doc) protected SComponent addUIListener(EventListener listener)(Code)(Java Doc) protected String constructComponentName()(Code)(Java Doc) public void dispatchEvent(AWTEvent event)(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) public void firePropertyChange()(Code)(Java Doc) final public void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, byte oldValue, byte newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, char oldValue, char newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, short oldValue, short newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, long oldValue, long newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, float oldValue, float newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, double oldValue, double newValue)(Code)(Java Doc) final protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public SContainer getAncestorNamed(String name)(Code)(Java Doc) public SContainer getAncestorOfClass(Class clazz)(Code)(Java Doc) public SColor getBackground()(Code)(Java Doc) public SBorder getBorder()(Code)(Java Doc) public Enumeration getClientKeys()(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) final public Object getClientProperty(Object key, Object defaultValue)(Code)(Java Doc) public int getClientPropertyCount()(Code)(Java Doc) public SComponent getComponent(String name)(Code)(Java Doc) public String getComponentUrl()(Code)(Java Doc) public String getContentType()(Code)(Java Doc) public Cursor getCursor()(Code)(Java Doc) public SFont getFont()(Code)(Java Doc) public SColor getForeground()(Code)(Java Doc) public int getHorizontalAlignment()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public SLookAndFeel getLookAndFeel()(Code)(Java Doc) public String getName()(Code)(Java Doc) public SContainer getParent()(Code)(Java Doc) public int getScriptCount()(Code)(Java Doc) public Enumeration getScripts()(Code)(Java Doc) public Dimension getSize()(Code)(Java Doc) public SwingletManager getSwingletManager()(Code)(Java Doc) public int getTabIndex()(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public SContainer getTopLevelAncestor()(Code)(Java Doc) public SComponentUI getUI()(Code)(Java Doc) public Class getUIClass()(Code)(Java Doc) public int getVerticalAlignment()(Code)(Java Doc) final protected boolean hasListeners()(Code)(Java Doc) final protected boolean hasListeners(String propertyName)(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFiringSuspended()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) public void onFirstPaint()(Code)(Java Doc) public void onPaintComponent()(Code)(Java Doc) public void onPaintComponentFooter()(Code)(Java Doc) public void onPaintComponentHeader()(Code)(Java Doc) public void onPaintHeader()(Code)(Java Doc) public void paint(Object out)(Code)(Java Doc) public void paintComponent(Object out)(Code)(Java Doc) public void paintComponentFooter(Object out)(Code)(Java Doc) public void paintComponentHeader(Object out)(Code)(Java Doc) public void paintHeader(Object out)(Code)(Java Doc) public void processActionEvent(ActionEvent event)(Code)(Java Doc) protected void processEvent(AWTEvent event)(Code)(Java Doc) final public SComponent putClientProperty(Object key, Object value)(Code)(Java Doc) public SComponent removeActionListener(ActionListener l)(Code)(Java Doc) public SComponent removeComponentListener(ComponentListener listener)(Code)(Java Doc) public SComponent removeFocusListener(FocusListener listener)(Code)(Java Doc) public SComponent removeKeyListener(KeyListener listener)(Code)(Java Doc) public SComponent removeMouseListener(MouseListener listener)(Code)(Java Doc) public SComponent removeMouseMotionListener(MouseMotionListener listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized SComponent removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public synchronized SComponent removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public SComponent removeScript(SScript script)(Code)(Java Doc) protected SComponent removeUIListener(EventListener listener)(Code)(Java Doc) public SComponent setBackground(SColor background)(Code)(Java Doc) public SComponent setBorder(SBorder border)(Code)(Java Doc) public void setCached(boolean cached)(Code)(Java Doc) public void setCursor(Cursor cursor)(Code)(Java Doc) public SComponent setEnabled(boolean enabled)(Code)(Java Doc) public void setFiringSuspended(boolean firingSuspended)(Code)(Java Doc) public SComponent setFont(String name, int style, int size)(Code)(Java Doc) public SComponent setFont(SFont font)(Code)(Java Doc) public SComponent setForeground(SColor foreground)(Code)(Java Doc) public SComponent setHorizontalAlignment(int horizontalAlignment)(Code)(Java Doc) public SComponent setLocale(Locale locale)(Code)(Java Doc) public SComponent setLookAndFeel(String lookAndFeel)(Code)(Java Doc) public SComponent setLookAndFeel(SLookAndFeel lookAndFeel)(Code)(Java Doc) public SComponent setName(String name)(Code)(Java Doc) public SComponent setOpaque(boolean opaque)(Code)(Java Doc) public SComponent setParent(SContainer parent)(Code)(Java Doc) public SComponent setSize(int width, int height)(Code)(Java Doc) public SComponent setSize(Dimension size)(Code)(Java Doc) public void setSwingletManager(SwingletManager swingletManager)(Code)(Java Doc) public SComponent setTabIndex(int tabIndex)(Code)(Java Doc) public SComponent setToolTipText(String toolTipText)(Code)(Java Doc) public SComponent setUI(SComponentUI ui)(Code)(Java Doc) public SComponent setValueAsText(String text)(Code)(Java Doc) public SComponent setVerticalAlignment(int verticalAlignment)(Code)(Java Doc) public SComponent setVisible(boolean visible)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|