|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.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 FormNested 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 useMethod 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 Borderable
Borderable.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 Borderable
Color
of the Borderable's
border.Borderable.getBorderColor()
public int getBorderSize()
getBorderSize
in interface Borderable
Borderables's
border.Borderable.getBorderSize()
public int getBorderStyle()
Borderable
getBorderStyle
in interface Borderable
Borderable.getBorderStyle()
public void setBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
border.
This will also set the left, top, right and bottom border color.
setBorderColor
in interface Borderable
Borderable.setBorderColor(nextapp.echo.Color)
public void setBorderSize(int borderSize)
Borderable
Borderables's
border.
This will also set the left, top, right and bottom border size.
setBorderSize
in interface Borderable
Borderable.setBorderSize(int)
public void setBorderStyle(int borderStyle)
Borderable
setBorderStyle
in interface Borderable
Borderable.setBorderStyle(int)
public nextapp.echo.Color getLeftBorderColor()
getLeftBorderColor
in interface Borderable
Color
of the Borderable's
left border.Borderable.getLeftBorderColor()
public int getLeftBorderSize()
getLeftBorderSize
in interface Borderable
Borderables's
left border.Borderable.getLeftBorderSize()
public int getLeftBorderStyle()
getLeftBorderStyle
in interface Borderable
Borderables's
left border.Borderable.getLeftBorderStyle()
public void setLeftBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
left border.
setLeftBorderColor
in interface Borderable
Borderable.setLeftBorderColor(nextapp.echo.Color)
public void setLeftBorderSize(int borderSize)
Borderable
Borderables's
left border.
setLeftBorderSize
in interface Borderable
Borderable.setLeftBorderSize(int)
public void setLeftBorderStyle(int borderStyle)
Borderable
Borderables's
left border.
setLeftBorderStyle
in interface Borderable
Borderable.setLeftBorderStyle(int)
public nextapp.echo.Color getTopBorderColor()
getTopBorderColor
in interface Borderable
Color
of the Borderable's
top border.Borderable.getTopBorderColor()
public int getTopBorderSize()
getTopBorderSize
in interface Borderable
Borderables's
top border.Borderable.getTopBorderSize()
public int getTopBorderStyle()
getTopBorderStyle
in interface Borderable
Borderables's
top border.Borderable.getTopBorderStyle()
public void setTopBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
top border.
setTopBorderColor
in interface Borderable
Borderable.setTopBorderColor(nextapp.echo.Color)
public void setTopBorderSize(int borderSize)
Borderable
Borderables's
top border.
setTopBorderSize
in interface Borderable
Borderable.setTopBorderSize(int)
public void setTopBorderStyle(int borderStyle)
Borderable
Borderables's
top border.
setTopBorderStyle
in interface Borderable
Borderable.setTopBorderStyle(int)
public nextapp.echo.Color getRightBorderColor()
getRightBorderColor
in interface Borderable
Color
of the Borderable's
right border.Borderable.getRightBorderColor()
public int getRightBorderSize()
getRightBorderSize
in interface Borderable
Borderables's
right border.Borderable.getRightBorderSize()
public int getRightBorderStyle()
getRightBorderStyle
in interface Borderable
Borderables's
right border.Borderable.getRightBorderStyle()
public void setRightBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
right border.
setRightBorderColor
in interface Borderable
Borderable.setRightBorderColor(nextapp.echo.Color)
public void setRightBorderSize(int borderSize)
Borderable
Borderables's
right border.
setRightBorderSize
in interface Borderable
Borderable.setRightBorderSize(int)
public void setRightBorderStyle(int borderStyle)
Borderable
Borderables's
right border.
setRightBorderStyle
in interface Borderable
Borderable.setRightBorderStyle(int)
public nextapp.echo.Color getBottomBorderColor()
getBottomBorderColor
in interface Borderable
Color
of the Borderable's
bottom border.Borderable.getBottomBorderColor()
public int getBottomBorderSize()
getBottomBorderSize
in interface Borderable
Borderables's
bottom border.Borderable.getBottomBorderSize()
public int getBottomBorderStyle()
getBottomBorderStyle
in interface Borderable
Borderables's
bottom border.Borderable.getBottomBorderStyle()
public void setBottomBorderColor(nextapp.echo.Color borderColor)
Borderable
Color
of the Borderable's
bottom border.
setBottomBorderColor
in interface Borderable
Borderable.setBottomBorderColor(nextapp.echo.Color)
public void setBottomBorderSize(int borderSize)
Borderable
Borderables's
bottom border.
setBottomBorderSize
in interface Borderable
Borderable.setBottomBorderSize(int)
public void setBottomBorderStyle(int borderStyle)
Borderable
Borderables's
bottom border.
setBottomBorderStyle
in interface Borderable
Borderable.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 ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |