|
||||||||||
| 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
|
static java.lang.String |
ENDS_WITH
|
static java.lang.String |
STARTS_WITH
|
| Fields inherited from class totalcross.ui.Container |
|---|
alwaysEraseBackground, BORDER_LOWERED, BORDER_NONE, BORDER_RAISED, BORDER_SIMPLE, nextTransitionEffect, tabOrder, TRANSITION_CLOSE, TRANSITION_NONE, TRANSITION_OPEN, transitionEffect |
| Fields inherited from class totalcross.ui.Control |
|---|
AFTER, appId, appObj, BEFORE, BOTTOM, BOTTOM_OF, CENTER, CENTER_OF, clearValueInt, clearValueStr, enableUpdateScreen, FILL, FIT, fm, focusOnPenDown, focusTraversable, KEEP, LEFT, PREFERRED, RANGE, RIGHT, RIGHT_OF, SAME, TOP, transparentBackground, WILL_RESIZE |
| 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. |
java.lang.Object |
getMenuBar()
Gets the Menu Bar button A filter doesn't have one by default. |
java.lang.String |
getTitle()
Gets the title. |
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 |
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, findNearestChild, findNextFocusControl, getBorderStyle, getChildren, getClientRect, getFocusableControls, getInsets, incLastX, incLastY, initUI, onPaint, 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, getPrev, getRect, getSize, getWidth, getX, getX2, getY, getY2, handleGeographicalFocusChangeKeys, isDisplayed, isEnabled, isInsideOrNear, isVisible, isVisibleAndInside, postEvent, postPressedEvent, removeFocusListener, removeGridListener, removeHighlightListener, removeKeyListener, removePenListener, removePressListener, removeTimer, removeTimerListener, removeWindowListener, repaint, repaintNow, reposition, requestFocus, resetSetPositions, setBackColor, setBackForeColors, setFocusLess, setFont, setForeColor, setRect, setRect, setRect, setRect, setVisible, translateFromOrigin, uiStyleChanged, updateScreen |
| Methods inherited from class java.lang.Object |
|---|
equals, 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
| 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.Containerpublic java.lang.Object getMenuBar()
getMenuBar in interface IFormpublic void onSwap(totalcross.ui.Container container)
IForm
onSwap in interface IFormpublic java.lang.String getTitle()
getTitle in interface IFormpublic 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.Controlpublic 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 | |||||||||