|
EchoPoint 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.Component
nextapp.echo.Container
echopoint.table.PagedTableController
PagedTableController is a component that can control
the scrolling of a PagedTabelModel. Use it as the visual artefact
that allows the user to control what page is currently seen in
a Table.
This component provides a compound component that looks as follows :
[next button] 'Page' [currentPage TextField] 'Of' [ maxPage TextField] [rowsPerPage SelectField] 'Per Page' [previous Button]
You can gain access to each of these child components to customise what the PagedTableController looks like.
PagedTableModel,
SortableTableModel,
TableModel,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class echopoint.positionable.Borderable |
Borderable.NestedStyleInfo |
| Field Summary | |
java.lang.String |
PAGED_TABLE_SCROLLER_CHANGED_PROPERTY
|
| Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
| Constructor Summary | |
PagedTableController()
Constructs a PagedTableController that controls
no PagedTableModel. |
|
PagedTableController(nextapp.echo.table.TableModel tableModel)
Constructs a PagedTableController that pages
the provided TableModel. |
|
| Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
This will apply the borderColor, borderWidth and borderStyle properties first followed by the left, top, right and bottom borer properties. |
nextapp.echo.Color |
getBackground()
|
nextapp.echo.Color |
getBorderColor()
|
int |
getBorderSize()
|
int |
getBorderStyle()
Returns the border style of the Borderable. |
nextapp.echo.Color |
getBottomBorderColor()
|
int |
getBottomBorderSize()
|
int |
getBottomBorderStyle()
|
nextapp.echo.TextField |
getCurrentPage()
Returns the current page TextField |
nextapp.echo.Font |
getFont()
|
nextapp.echo.Color |
getForeground()
|
nextapp.echo.Color |
getLeftBorderColor()
|
int |
getLeftBorderSize()
|
int |
getLeftBorderStyle()
|
nextapp.echo.TextField |
getMaxPages()
Returns the maxPages TextField |
nextapp.echo.table.TableModel |
getModel()
Returns the TableModel in use |
nextapp.echo.Button |
getNext()
Returns the Next Button |
java.lang.String |
getOfText()
Returns the text value for 'Of' as in Page 1 'Of' 10 |
java.lang.String |
getPageText()
Returns the text value for 'Page' as in 'Page' 1 Of 10 |
java.lang.String |
getPerPageText()
Returns the text value for 'Per Page' as in 10 'Per Page' |
nextapp.echo.Button |
getPrevious()
Returns the Previous Button |
nextapp.echo.Color |
getRightBorderColor()
|
int |
getRightBorderSize()
|
int |
getRightBorderStyle()
|
nextapp.echo.SelectField |
getRowsPerPage()
Returns the Rows Per Page SelectField |
nextapp.echo.Color |
getTopBorderColor()
|
int |
getTopBorderSize()
|
int |
getTopBorderStyle()
|
protected void |
init()
|
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setBackground(nextapp.echo.Color newValue)
|
void |
setBorderColor(nextapp.echo.Color borderColor)
Sets the Color of the Borderable's border.
|
void |
setBorderSize(int borderSize)
Sets the size of the Borderables's border.
|
void |
setBorderStyle(int borderStyle)
Sets the border style of the Borderable. |
void |
setBottomBorderColor(nextapp.echo.Color borderColor)
Sets the Color of the Borderable's bottom border. |
void |
setBottomBorderSize(int borderSize)
Sets the size of the Borderables's bottom border. |
void |
setBottomBorderStyle(int borderStyle)
Sets the border style of the Borderables's bottom border. |
void |
setCurrentPage(nextapp.echo.TextField field)
Sets the CurrentPage TextField |
void |
setFont(nextapp.echo.Font newValue)
|
void |
setForeground(nextapp.echo.Color newValue)
|
void |
setLeftBorderColor(nextapp.echo.Color borderColor)
Sets the Color of the Borderable's left border. |
void |
setLeftBorderSize(int borderSize)
Sets the size of the Borderables's left border. |
void |
setLeftBorderStyle(int borderStyle)
Sets the border style of the Borderables's left border. |
void |
setMaxPages(nextapp.echo.TextField field)
Sets the MaxPages TextField |
void |
setModel(nextapp.echo.table.TableModel tableModel)
Sets the PagedTableModel to use. |
void |
setNext(nextapp.echo.Button button)
Sets the Next Button |
void |
setOfText(java.lang.String string)
Sets the text value for 'Of' as in Page 1 'Of' 10 |
void |
setPageText(java.lang.String string)
Sets the text value for 'Page' as in 'Page' 1 Of 10 |
void |
setPerPageText(java.lang.String string)
Sets the text value for 'Per Page' as in 10 'Per Page' |
void |
setPrevious(nextapp.echo.Button button)
Sets the Previous Button |
void |
setRightBorderColor(nextapp.echo.Color borderColor)
Sets the Color of the Borderable's right border. |
void |
setRightBorderSize(int borderSize)
Sets the size of the Borderables's right border. |
void |
setRightBorderStyle(int borderStyle)
Sets the border style of the Borderables's right border. |
void |
setRowsPerPage(nextapp.echo.SelectField field)
Sets the Rows Per Page SelectField. |
void |
setTopBorderColor(nextapp.echo.Color borderColor)
Sets the Color of the Borderable's top border. |
void |
setTopBorderSize(int borderSize)
Sets the size of the Borderables's top border. |
void |
setTopBorderStyle(int borderStyle)
Sets the border style of the Borderables's top border. |
| Methods inherited from class nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getComponent, getComponentCount, getComponents, getEchoInstance, getIdentifier, getLocale, getParent, indexOf, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setEnabled, setIdentifier, setLocale, setVisible, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final java.lang.String PAGED_TABLE_SCROLLER_CHANGED_PROPERTY
| Constructor Detail |
public PagedTableController()
PagedTableController that controls
no PagedTableModel.
public PagedTableController(nextapp.echo.table.TableModel tableModel)
PagedTableController that pages
the provided TableModel. If the TableModel
does not implement PagedTableModel, then it is wrapped in one.
tableModel - - the TableModel to use| Method Detail |
protected void init()
Component.init()public nextapp.echo.TextField getCurrentPage()
public nextapp.echo.TextField getMaxPages()
public nextapp.echo.table.TableModel getModel()
public nextapp.echo.Button getNext()
public java.lang.String getOfText()
public java.lang.String getPageText()
public java.lang.String getPerPageText()
public nextapp.echo.Button getPrevious()
public nextapp.echo.SelectField getRowsPerPage()
public void setCurrentPage(nextapp.echo.TextField field)
field - a TextFieldpublic void setMaxPages(nextapp.echo.TextField field)
field - a TextFieldpublic void setModel(nextapp.echo.table.TableModel tableModel)
tableModel - the TableModel to usepublic void setNext(nextapp.echo.Button button)
button - - the next buttonpublic void setOfText(java.lang.String string)
string - the text valuepublic void setPageText(java.lang.String string)
string - the text valuepublic void setPerPageText(java.lang.String string)
string - the text valuepublic void setPrevious(nextapp.echo.Button button)
button - the Previous Buttonpublic void setRowsPerPage(nextapp.echo.SelectField field)
field - the Rows Per Page SelectFieldpublic void applyStyle(nextapp.echo.Style style)
Borderable
applyStyle in interface BorderableBorderable.applyStyle(nextapp.echo.Style)public nextapp.echo.Color getBackground()
Component.getBackground()public nextapp.echo.Font getFont()
Component.getFont()public nextapp.echo.Color getForeground()
Component.getForeground()public void setBackground(nextapp.echo.Color newValue)
Component.setBackground(nextapp.echo.Color)public void setFont(nextapp.echo.Font newValue)
Component.setFont(nextapp.echo.Font)public void setForeground(nextapp.echo.Color newValue)
Component.setForeground(nextapp.echo.Color)public nextapp.echo.Color getBorderColor()
getBorderColor in interface BorderableColor of the Borderable's border.Borderable.getBorderColor()public int getBorderSize()
getBorderSize in interface BorderableBorderables's border.Borderable.getBorderSize()public int getBorderStyle()
Borderable
getBorderStyle in interface BorderableBorderable.getBorderStyle()public void setBorderColor(nextapp.echo.Color borderColor)
BorderableColor of the Borderable's border.
This will also set the left, top, right and bottom border color.
setBorderColor in interface BorderableBorderable.setBorderColor(nextapp.echo.Color)public void setBorderSize(int borderSize)
BorderableBorderables's border.
This will also set the left, top, right and bottom border size.
setBorderSize in interface BorderableBorderable.setBorderSize(int)public void setBorderStyle(int borderStyle)
Borderable
setBorderStyle in interface BorderableBorderable.setBorderStyle(int)public nextapp.echo.Color getLeftBorderColor()
getLeftBorderColor in interface BorderableColor of the Borderable's left border.Borderable.getLeftBorderColor()public int getLeftBorderSize()
getLeftBorderSize in interface BorderableBorderables's left border.Borderable.getLeftBorderSize()public int getLeftBorderStyle()
getLeftBorderStyle in interface BorderableBorderables's left border.Borderable.getLeftBorderStyle()public void setLeftBorderColor(nextapp.echo.Color borderColor)
BorderableColor of the Borderable's left border.
setLeftBorderColor in interface BorderableBorderable.setLeftBorderColor(nextapp.echo.Color)public void setLeftBorderSize(int borderSize)
BorderableBorderables's left border.
setLeftBorderSize in interface BorderableBorderable.setLeftBorderSize(int)public void setLeftBorderStyle(int borderStyle)
BorderableBorderables's left border.
setLeftBorderStyle in interface BorderableBorderable.setLeftBorderStyle(int)public nextapp.echo.Color getTopBorderColor()
getTopBorderColor in interface BorderableColor of the Borderable's top border.Borderable.getTopBorderColor()public int getTopBorderSize()
getTopBorderSize in interface BorderableBorderables's top border.Borderable.getTopBorderSize()public int getTopBorderStyle()
getTopBorderStyle in interface BorderableBorderables's top border.Borderable.getTopBorderStyle()public void setTopBorderColor(nextapp.echo.Color borderColor)
BorderableColor of the Borderable's top border.
setTopBorderColor in interface BorderableBorderable.setTopBorderColor(nextapp.echo.Color)public void setTopBorderSize(int borderSize)
BorderableBorderables's top border.
setTopBorderSize in interface BorderableBorderable.setTopBorderSize(int)public void setTopBorderStyle(int borderStyle)
BorderableBorderables's top border.
setTopBorderStyle in interface BorderableBorderable.setTopBorderStyle(int)public nextapp.echo.Color getRightBorderColor()
getRightBorderColor in interface BorderableColor of the Borderable's right border.Borderable.getRightBorderColor()public int getRightBorderSize()
getRightBorderSize in interface BorderableBorderables's right border.Borderable.getRightBorderSize()public int getRightBorderStyle()
getRightBorderStyle in interface BorderableBorderables's right border.Borderable.getRightBorderStyle()public void setRightBorderColor(nextapp.echo.Color borderColor)
BorderableColor of the Borderable's right border.
setRightBorderColor in interface BorderableBorderable.setRightBorderColor(nextapp.echo.Color)public void setRightBorderSize(int borderSize)
BorderableBorderables's right border.
setRightBorderSize in interface BorderableBorderable.setRightBorderSize(int)public void setRightBorderStyle(int borderStyle)
BorderableBorderables's right border.
setRightBorderStyle in interface BorderableBorderable.setRightBorderStyle(int)public nextapp.echo.Color getBottomBorderColor()
getBottomBorderColor in interface BorderableColor of the Borderable's bottom border.Borderable.getBottomBorderColor()public int getBottomBorderSize()
getBottomBorderSize in interface BorderableBorderables's bottom border.Borderable.getBottomBorderSize()public int getBottomBorderStyle()
getBottomBorderStyle in interface BorderableBorderables's bottom border.Borderable.getBottomBorderStyle()public void setBottomBorderColor(nextapp.echo.Color borderColor)
BorderableColor of the Borderable's bottom border.
setBottomBorderColor in interface BorderableBorderable.setBottomBorderColor(nextapp.echo.Color)public void setBottomBorderSize(int borderSize)
BorderableBorderables's bottom border.
setBottomBorderSize in interface BorderableBorderable.setBottomBorderSize(int)public void setBottomBorderStyle(int borderStyle)
BorderableBorderables's bottom border.
setBottomBorderStyle in interface BorderableBorderable.setBottomBorderStyle(int)
public java.lang.Object set(java.lang.reflect.Field field,
java.lang.Object newValue)
throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception {
Object oldValue = f.get(this);
f.set(this,newValue);
return oldValue;
}
set in interface ReflectionSetterfield - - the field to be setnewValue - - the new value to be set
java.lang.ExceptionReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||