|
||||||||||
| 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.ui.Bean
com.tekann.ui.BlobBean
public class BlobBean
BLOB's control.
| Field Summary | |
|---|---|
protected totalcross.ui.Button |
btnFileChooser
File chooser's button. |
static byte |
CANCEL_FILE_OPTION
|
static byte |
CLEAR_FILE_OPTION
|
protected totalcross.ui.dialog.FileChooserBox |
fcb
|
protected totalcross.ui.ImageControl |
imcBlob
ImageControl to show BLOB data. |
static int |
MAX_FILE_LEGTH
Max file length (10MB). |
java.lang.String |
rootFilePath
The root from where the tree will be mounted. |
static byte |
SELECT_FILE_OPTION
|
boolean |
showAsImage
Flag to show loaded data as image. |
int |
volume
The volume used in Palm OS only. |
int |
xGap
X gap. |
int |
yGap
Y gap. |
| 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 | |
|---|---|
BlobBean()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
protected java.lang.String |
getCancelFileLabel()
|
protected java.lang.String |
getClearFileLabel()
|
byte[] |
getData()
|
protected java.lang.String |
getDefaultIconPath()
Icon's path for default icon when showAsImage is disabled. |
protected totalcross.ui.dialog.FileChooserBox.Filter |
getFileFilter()
Get default file filter. |
protected java.lang.String |
getOpenFileChooserIconPath()
File chooser's icon path. |
int |
getPreferredHeight()
|
int |
getPreferredWidth()
|
java.lang.String[] |
getProperties()
Property list. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get a property value. |
protected java.lang.String |
getSelectedFileLabel()
|
protected void |
initImage()
|
void |
initUI()
|
protected void |
loadBlobImage()
|
protected void |
loadDefaultImage()
|
protected void |
loadNullImage()
|
void |
onEvent(totalcross.ui.event.Event evt)
|
protected void |
pathButtonEventAction(totalcross.ui.event.Event evt)
Event action method for pathButton |
void |
setBackColor(int c)
|
void |
setData(byte[] data)
|
void |
setFileChooser(totalcross.ui.dialog.FileChooserBox fileChooser)
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object property)
Set a property value. |
protected int |
showFileChooserAction(java.lang.String filePath)
Show a file chooser. |
void |
showMessage(java.lang.String title,
java.lang.String message)
Show 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, 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, 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, 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 |
| Field Detail |
|---|
protected totalcross.ui.Button btnFileChooser
protected totalcross.ui.ImageControl imcBlob
public boolean showAsImage
public int xGap
public int yGap
protected totalcross.ui.dialog.FileChooserBox fcb
public static final byte SELECT_FILE_OPTION
public static final byte CANCEL_FILE_OPTION
public static final byte CLEAR_FILE_OPTION
public static final int MAX_FILE_LEGTH
public int volume
public java.lang.String rootFilePath
| Constructor Detail |
|---|
public BlobBean()
| Method Detail |
|---|
public void clear()
clear in class totalcross.ui.Containerpublic void initUI()
initUI in class totalcross.ui.Containerprotected java.lang.String getDefaultIconPath()
protected java.lang.String getOpenFileChooserIconPath()
protected final void initImage()
protected void loadBlobImage()
throws totalcross.ui.image.ImageException,
totalcross.io.IOException
totalcross.ui.image.ImageException
totalcross.io.IOException
protected void loadDefaultImage()
throws totalcross.ui.image.ImageException,
totalcross.io.IOException
totalcross.ui.image.ImageException
totalcross.io.IOExceptionprotected void loadNullImage()
public void onEvent(totalcross.ui.event.Event evt)
onEvent in class totalcross.ui.Controlprotected void pathButtonEventAction(totalcross.ui.event.Event evt)
public void setData(byte[] data)
protected int showFileChooserAction(java.lang.String filePath)
protected java.lang.String getSelectedFileLabel()
protected java.lang.String getCancelFileLabel()
protected java.lang.String getClearFileLabel()
public void showMessage(java.lang.String title,
java.lang.String message)
public int getPreferredHeight()
getPreferredHeight in class totalcross.ui.Controlpublic int getPreferredWidth()
getPreferredWidth in class totalcross.ui.Controlpublic java.lang.String[] getProperties()
IBean
public byte[] getData()
protected totalcross.ui.dialog.FileChooserBox.Filter getFileFilter()
public java.lang.Object getProperty(java.lang.String propertyName)
IBean
public void setBackColor(int c)
setBackColor in class totalcross.ui.Controlpublic void setFileChooser(totalcross.ui.dialog.FileChooserBox fileChooser)
public void setProperty(java.lang.String propertyName,
java.lang.Object property)
IBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||