|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttotalcross.ui.gfx.GfxSurface
totalcross.ui.Control
totalcross.ui.Container
com.tekann.codegen.pda.FilterForm
public abstract class FilterForm
This class is used to make possible the use of a filter in the TKN Mobile Studio. Therefore you can create a Filter in the create form option on the tool.
| Field Summary | |
|---|---|
static java.lang.String |
CONTAINS
|
(package private) java.lang.String |
creatorId
|
protected int[] |
dataTypes
|
static java.lang.String |
ENDS_WITH
|
protected totalcross.util.Hashtable |
fieldGridColumns
|
protected java.lang.Object[] |
fields
|
protected java.lang.String |
filterTableName
|
protected java.lang.String |
gridTableName
|
protected totalcross.util.Vector |
preparedStatementColumns
|
protected totalcross.util.Vector |
preparedStatementValues
|
static java.lang.String |
STARTS_WITH
|
protected IFilter |
tableGrid
|
protected java.lang.String |
where
|
protected java.lang.String |
whereClause
|
| Fields inherited from class totalcross.ui.Container |
|---|
alwaysEraseBackground, BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_SIMPLE, children, finishedStart, ignoreOnAddAgain, ignoreOnRemove, insets, lastH, lastScreenWidth, lastW, lastX, lastY, started, tabOrder, tail |
| Fields inherited from class totalcross.ui.Control |
|---|
AFTER, appId, appObj, asContainer, asWindow, backColor, BEFORE, BOTTOM, BOTTOM_OF, CENTER, CENTER_OF, clearValueInt, clearValueStr, enabled, enableUpdateScreen, FILL, FIT, fm, fmH, focusHandler, focusLess, focusOnPenDown, focusTraversable, font, foreColor, height, isHighlighting, KEEP, LEFT, onEventFirst, parent, PREFERRED, RANGE, repositionAllowed, RIGHT, RIGHT_OF, SAME, setFont, setH, setRel, setW, setX, setY, TOP, transparentBackground, uiCE, uiFlat, uiPalm, uiVista, visible, width, WILL_RESIZE, x, y |
| Constructor Summary | |
|---|---|
FilterForm()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
changeStateFields(boolean arg0)
|
void |
clear()
Clear the fields. |
static void |
filterTableExists(java.lang.String creatorID,
java.lang.String filterTable,
IFilter tableGrid,
java.lang.Object[] fieldColumns,
int[] types)
if the Filter_Table doesn't exists the the filter button is set as disabled. |
protected abstract totalcross.ui.Button |
getAddButton()
Gets the add button |
protected abstract totalcross.ui.Button |
getAlterButton()
Gets the alter button |
protected abstract totalcross.ui.Button |
getClearButton()
Gets the clear button |
protected abstract totalcross.ui.ComboBox |
getFieldComboBox()
Gets the field button |
java.lang.Object |
getMenuBar()
Gets the Menu Bar button A filter doesn't have one by default. |
protected abstract totalcross.ui.Button |
getOkButton()
Gets the ok button |
protected abstract totalcross.ui.ComboBox |
getOperatorComboBox()
Gets the operator comboBox |
protected abstract totalcross.ui.Edit |
getQueryEdit()
Gets the query edit |
protected abstract totalcross.ui.Grid |
getQueryGrid()
Gets the query grid |
protected abstract totalcross.ui.Button |
getRemoveButton()
Gets the remove button |
java.lang.String |
getTitle()
Gets the title. |
protected abstract totalcross.ui.Edit |
getValueEdit()
Gets the value edit. |
java.lang.String |
getWhere()
Gets the where search of a prepared statement. |
java.lang.String |
getWhereClause()
Gets the where clause |
void |
initFilterForm(IFilter tableGrid,
java.lang.String gridTableName,
java.lang.String tableName,
java.lang.String creatorId,
java.lang.Object[] fields,
java.lang.Object[] gridColumns,
int[] dataTyppes)
Initializes the FilterForm by the passed arguments. |
void |
loadFilterTable()
Loads the Filter Table. |
void |
loadForm()
Loads the form. |
void |
onEvent(totalcross.ui.event.Event e)
Handle the events. |
void |
onSwap(totalcross.ui.Container container)
Optional implementation while swapping |
protected abstract void |
setFieldComboBox(totalcross.ui.ComboBox fieldComboBox)
|
void |
setTableGrid(IFilter tableGrid)
Sets the table grid. |
void |
setTitle(java.lang.String arg0)
Sets the form title. |
void |
showMessage(java.lang.String arg0,
java.lang.String arg1)
Shows a message to the user. |
| Methods inherited from class totalcross.ui.Container |
|---|
add, add, add, add, add, broadcastEvent, findChild, findNextFocusControl, getBorderStyle, getChildren, getClientRect, getClientRect, getFocusableControls, getInsets, incLastX, incLastY, initUI, onAddAgain, onColorsChanged, onPaint, onRemove, paintChildren, remove, removeAll, resize, resizeHeight, resizeWidth, setBorderStyle, setEnabled, setHighlighting, setInsets, swapToTopmostWindow |
| Methods inherited from class totalcross.ui.Control |
|---|
_onEvent, addFocusListener, addGridListener, addHighlightListener, addKeyListener, addPenListener, addPressListener, addTimer, addTimer, addTimerListener, addWindowListener, changeHighlighted, contains, getAbsoluteRect, getBackColor, getEventListeners, getFont, getForeColor, getGraphics, getHeight, getNext, getParent, getParentWindow, getPos, getPreferredHeight, getPreferredWidth, getPressedEvent, getPrev, getRect, getSize, getWidth, getX, getX2, getY, getY2, handleGeographicalFocusChangeKeys, isDisplayed, isEnabled, isVisible, isVisibleAndInside, onBoundsChanged, onFontChanged, onWindowPaintFinished, postEvent, postPressedEvent, removeListener, removeTimer, repaint, repaintNow, reposition, reposition, requestFocus, setBackColor, setBackForeColors, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setRect, setVisible, translateFromOrigin, uiStyleChanged, updateScreen, updateTemporary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tekann.codegen.pda.IForm |
|---|
getFont, loadMenuBar |
| Methods inherited from interface com.tekann.i18n.Internacionalizable |
|---|
getID, getResourceDir, getResourcePrefix |
| Field Detail |
|---|
public static final java.lang.String CONTAINS
public static final java.lang.String ENDS_WITH
public static final java.lang.String STARTS_WITH
java.lang.String creatorId
protected int[] dataTypes
protected totalcross.util.Hashtable fieldGridColumns
protected java.lang.Object[] fields
protected java.lang.String filterTableName
protected java.lang.String gridTableName
protected totalcross.util.Vector preparedStatementColumns
protected totalcross.util.Vector preparedStatementValues
protected IFilter tableGrid
protected java.lang.String where
protected java.lang.String whereClause
| Constructor Detail |
|---|
public FilterForm()
| Method Detail |
|---|
public static void filterTableExists(java.lang.String creatorID,
java.lang.String filterTable,
IFilter tableGrid,
java.lang.Object[] fieldColumns,
int[] types)
throws java.lang.Exception
java.lang.Exceptionpublic void changeStateFields(boolean arg0)
public void clear()
clear in class totalcross.ui.Containerprotected abstract totalcross.ui.Button getAddButton()
protected abstract totalcross.ui.Button getAlterButton()
protected abstract totalcross.ui.Button getClearButton()
protected abstract totalcross.ui.ComboBox getFieldComboBox()
public java.lang.Object getMenuBar()
getMenuBar in interface IFormpublic void onSwap(totalcross.ui.Container container)
IForm
onSwap in interface IFormprotected abstract totalcross.ui.Button getOkButton()
protected abstract totalcross.ui.ComboBox getOperatorComboBox()
protected abstract totalcross.ui.Edit getQueryEdit()
protected abstract totalcross.ui.Grid getQueryGrid()
protected abstract totalcross.ui.Button getRemoveButton()
public java.lang.String getTitle()
getTitle in interface IFormprotected abstract totalcross.ui.Edit getValueEdit()
public java.lang.String getWhere()
public java.lang.String getWhereClause()
public void initFilterForm(IFilter tableGrid,
java.lang.String gridTableName,
java.lang.String tableName,
java.lang.String creatorId,
java.lang.Object[] fields,
java.lang.Object[] gridColumns,
int[] dataTyppes)
tableGrid - gridTableName - tableName - creatorId - fields - gridColumns - dataTyppes - public void loadFilterTable()
public void loadForm()
throws java.lang.Exception
IForm
loadForm in interface IFormjava.lang.Exceptionpublic void onEvent(totalcross.ui.event.Event e)
onEvent in class totalcross.ui.Controlprotected abstract void setFieldComboBox(totalcross.ui.ComboBox fieldComboBox)
public void setTableGrid(IFilter tableGrid)
tableGrid - public void setTitle(java.lang.String arg0)
IForm
setTitle in interface IForm
public void showMessage(java.lang.String arg0,
java.lang.String arg1)
IForm
showMessage in interface IForm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||