com.tekann.ui
Class BlobBean

java.lang.Object
  extended by totalcross.ui.gfx.GfxSurface
      extended by totalcross.ui.Control
          extended by totalcross.ui.Container
              extended by com.tekann.ui.Bean
                  extended by com.tekann.ui.BlobBean
All Implemented Interfaces:
IBean

public class BlobBean
extends Bean

BLOB's control.

Author:
guilherme

Field Summary
static byte CANCEL_FILE_OPTION
           
static byte CLEAR_FILE_OPTION
           
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, 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
BlobBean()
           
 
Method Summary
 void clear()
           
 byte[] getData()
           
 int getPreferredHeight()
           
 int getPreferredWidth()
           
 java.lang.String[] getProperties()
          Property list.
 java.lang.Object getProperty(java.lang.String propertyName)
          Get a property value.
 void initUI()
           
 void onEvent(totalcross.ui.event.Event evt)
           
 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.
 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, findNearestChild, findNextFocusControl, getBorderStyle, getChildren, getClientRect, getFocusableControls, getInsets, incLastX, incLastY, 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, 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, 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
 

Field Detail

showAsImage

public boolean showAsImage
Flag to show loaded data as image.


xGap

public int xGap
X gap.


yGap

public int yGap
Y gap.


SELECT_FILE_OPTION

public static final byte SELECT_FILE_OPTION
See Also:
Constant Field Values

CANCEL_FILE_OPTION

public static final byte CANCEL_FILE_OPTION
See Also:
Constant Field Values

CLEAR_FILE_OPTION

public static final byte CLEAR_FILE_OPTION
See Also:
Constant Field Values

MAX_FILE_LEGTH

public static final int MAX_FILE_LEGTH
Max file length (10MB).

See Also:
Constant Field Values

volume

public int volume
The volume used in Palm OS only.
Usually 1 is the NVFS volume, and 2 is the card slot.


rootFilePath

public java.lang.String rootFilePath
The root from where the tree will be mounted.

Constructor Detail

BlobBean

public BlobBean()
Method Detail

clear

public void clear()
Overrides:
clear in class totalcross.ui.Container

initUI

public void initUI()
Overrides:
initUI in class totalcross.ui.Container

onEvent

public void onEvent(totalcross.ui.event.Event evt)
Overrides:
onEvent in class totalcross.ui.Control

setData

public void setData(byte[] data)

showMessage

public void showMessage(java.lang.String title,
                        java.lang.String message)
Show a message to the user.


getPreferredHeight

public int getPreferredHeight()
Overrides:
getPreferredHeight in class totalcross.ui.Control

getPreferredWidth

public int getPreferredWidth()
Overrides:
getPreferredWidth in class totalcross.ui.Control

getProperties

public java.lang.String[] getProperties()
Description copied from interface: IBean
Property list.

Returns:
A String array

getData

public byte[] getData()

getProperty

public java.lang.Object getProperty(java.lang.String propertyName)
Description copied from interface: IBean
Get a property value.

Returns:
An Object

setBackColor

public void setBackColor(int c)
Overrides:
setBackColor in class totalcross.ui.Control

setFileChooser

public void setFileChooser(totalcross.ui.dialog.FileChooserBox fileChooser)

setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.Object property)
Description copied from interface: IBean
Set a property value.