com.sibvisions.rad.application
Class ApplicationUtil

java.lang.Object
  extended by javax.rad.genui.UIResource<C>
      extended by javax.rad.genui.UIComponent<IComponent>
          extended by com.sibvisions.rad.application.ApplicationUtil
All Implemented Interfaces:
IComponent, IResource

public class ApplicationUtil
extends UIComponent<IComponent>

The ApplicationUtil is a utility class which provides methods and constants which will be used from applications.


Field Summary
static UICellFormat BLUE_CELL
          Blue cell.
static UINumberCellEditor CENTERED_NUMBER_EDITOR
          Centered number cell editor.
static UITextCellEditor CENTERED_TEXT_EDITOR
          Centered text cell editor.
static UICellFormat GREEN_CELL
          Green cell.
static UITextCellEditor MULTILINE_EDITOR
          Multiline (text area) cell editor.
static UICellFormat ORANGE_CELL
          Orange cell.
static UITextCellEditor PASSWORD_EDITOR
          Passwort cell editor.
static UICellFormat RED_CELL
          Red cell.
static UICellFormat YELLOW_CELL
          Yellow cell.
static UIChoiceCellEditor YESNO_EDITOR
          Yes/No choice cell editor.
 
Fields inherited from class javax.rad.genui.UIComponent
logger, parent
 
Fields inherited from class javax.rad.genui.UIResource
uiResource
 
Constructor Summary
protected ApplicationUtil()
          Invisible constructor, because ApplictionUtil is a utility class.
 
Method Summary
static UIChoiceCellEditor createYNChoiceCellEditor()
          Returns a new checkbox cell editor with "Y", "N" values.
static String[] getAllVisibleColumns(IDataBook pDataBook)
          Gets all visible columns on screen.
 
Methods inherited from class javax.rad.genui.UIComponent
addNotify, capture, debug, error, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getComponentUIResource, getCurrentTranslation, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getResource, getSize, getToolTipText, getTranslation, info, invokeAndWait, invokeAndWait, invokeInThread, invokeInThread, invokeLater, invokeLater, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isNotified, isPreferredSizeSet, isVisible, removeNotify, requestFocus, setBackground, setBounds, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setParent, setPreferredSize, setPreferredSize, setSize, setSize, setToolTipText, setTranslation, setVisible, translate, updateTranslation
 
Methods inherited from class javax.rad.genui.UIResource
equals, getUIResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RED_CELL

public static final UICellFormat RED_CELL
Red cell.


ORANGE_CELL

public static final UICellFormat ORANGE_CELL
Orange cell.


YELLOW_CELL

public static final UICellFormat YELLOW_CELL
Yellow cell.


BLUE_CELL

public static final UICellFormat BLUE_CELL
Blue cell.


GREEN_CELL

public static final UICellFormat GREEN_CELL
Green cell.


PASSWORD_EDITOR

public static final UITextCellEditor PASSWORD_EDITOR
Passwort cell editor.


CENTERED_TEXT_EDITOR

public static final UITextCellEditor CENTERED_TEXT_EDITOR
Centered text cell editor.


CENTERED_NUMBER_EDITOR

public static final UINumberCellEditor CENTERED_NUMBER_EDITOR
Centered number cell editor.


MULTILINE_EDITOR

public static final UITextCellEditor MULTILINE_EDITOR
Multiline (text area) cell editor.


YESNO_EDITOR

public static final UIChoiceCellEditor YESNO_EDITOR
Yes/No choice cell editor.

Constructor Detail

ApplicationUtil

protected ApplicationUtil()
Invisible constructor, because ApplictionUtil is a utility class.

Method Detail

createYNChoiceCellEditor

public static UIChoiceCellEditor createYNChoiceCellEditor()
Returns a new checkbox cell editor with "Y", "N" values.

Returns:
a new checkbox cell editor with "Y", "N" values.

getAllVisibleColumns

public static String[] getAllVisibleColumns(IDataBook pDataBook)
Gets all visible columns on screen.

Parameters:
pDataBook - the data book.
Returns:
all visible columns on screen.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.