Package org.luwrain.controls
Class TableArea
java.lang.Object
org.luwrain.controls.TableArea
The area class with table behaviour. The data to be provided is
requested from the instance of TableModel interface which can be
either standard or custom. Application developers can make their own
appearance of table content through extending the TableAppearance
interface.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprotected final TableArea.Appearance
protected TableClickHandler
protected final ClipboardTranslator
protected final ControlContext
static final int
protected final TableArea.Model
protected String
protected final RegionPoint
-
Constructor Summary
ConstructorDescriptionTableArea
(ControlContext environment, TableArea.Model model) TableArea
(ControlContext environment, TableArea.Model model, String name) TableArea
(ControlContext environment, TableArea.Model model, TableArea.Appearance appearance, TableClickHandler clickHandler, String name) -
Method Summary
Modifier and TypeMethodDescriptionAction[]
int
int
getLine
(int index) int
int
int
boolean
onAreaQuery
(AreaQuery query) boolean
onInputEvent
(InputEvent event) boolean
onSystemEvent
(SystemEvent event) void
refresh()
void
refresh
(boolean refreshModel) void
setClickHandler
(TableClickHandler clickHandler) void
-
Field Details
-
INTRODUCTION_BRIEF
public static final int INTRODUCTION_BRIEF- See Also:
-
environment
-
regionPoint
-
clipboardTranslator
-
name
-
model
-
appearance
-
clickHandler
-
-
Constructor Details
-
TableArea
-
TableArea
-
TableArea
public TableArea(ControlContext environment, TableArea.Model model, TableArea.Appearance appearance, TableClickHandler clickHandler, String name)
-
-
Method Details
-
refresh
public void refresh() -
refresh
public void refresh(boolean refreshModel) -
getSelectedRow
-
getSelectedCol
-
getSelectedCell
-
getSelectedRowIndex
public int getSelectedRowIndex() -
getSelectedColIndex
public int getSelectedColIndex() -
setClickHandler
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
-
onAreaQuery
- Specified by:
onAreaQuery
in interfaceArea
-
getAreaActions
- Specified by:
getAreaActions
in interfaceArea
-
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceLines
-
getLine
-
getHotPointX
public int getHotPointX()- Specified by:
getHotPointX
in interfaceArea
- Specified by:
getHotPointX
in interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointY
in interfaceArea
- Specified by:
getHotPointY
in interfaceHotPoint
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
-
setName
-