de.cbse.jeasy
Class JEImageIcon

java.lang.Object
  extended by de.cbse.jeasy.JEObject
      extended by de.cbse.jeasy.JEImageIcon

public class JEImageIcon
extends JEObject

Implements a ImageIcon. To be able to sort icons in a table it has an order property.

See a demonstration in the program JEasyExample tab "Sortable icon".

Properties :

Author:
Harry Pfohl

Field Summary
 
Fields inherited from class de.cbse.jeasy.JEObject
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, parentId, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW
 
Constructor Summary
JEImageIcon(JELocaleProperties hm)
          Reads the properties from a HashMap
JEImageIcon(JENode jen)
          Constructor based on a XML file parsed to a TreeNode.
 
Method Summary
 javax.swing.ImageIcon getIcon()
           
 java.lang.String getOrder()
          Gets the order string used when sorting images in a table
 void init()
          Creates Java or SWING objects with the given properties.
 void setIcon(javax.swing.ImageIcon icon)
           
 void setOrder(java.lang.String order)
          Sets a order string used when sorting images in a table
 java.lang.String toString()
           
 
Methods inherited from class de.cbse.jeasy.JEObject
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getParentId, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setParentId, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, setupComponent, show, timerTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JEImageIcon

public JEImageIcon(JELocaleProperties hm)
Reads the properties from a HashMap

Parameters:
hm - HashMap

JEImageIcon

public JEImageIcon(JENode jen)
Constructor based on a XML file parsed to a TreeNode.

Parameters:
jen -
See Also:
JESaxParser
Method Detail

init

public void init()
Description copied from class: JEObject
Creates Java or SWING objects with the given properties.

Overrides:
init in class JEObject

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setOrder

public void setOrder(java.lang.String order)
Sets a order string used when sorting images in a table

Parameters:
order -

getOrder

public java.lang.String getOrder()
Gets the order string used when sorting images in a table

Parameters:
order -

getIcon

public javax.swing.ImageIcon getIcon()
Returns:

setIcon

public void setIcon(javax.swing.ImageIcon icon)
Parameters:
icon -