com.eliad.swing
Class JSmartGridBeanInfo

java.lang.Object
  |
  +--java.beans.SimpleBeanInfo
        |
        +--com.eliad.swing.JSmartGridBeanInfo

public class JSmartGridBeanInfo
extends java.beans.SimpleBeanInfo


Field Summary
protected static int PROPERTY_actionMap
           
protected static int PROPERTY_alignmentX
           
protected static int PROPERTY_alignmentY
           
protected static int PROPERTY_autoCreateColumnHeader
           
protected static int PROPERTY_autoCreateRowHeader
           
protected static int PROPERTY_autoscrolls
           
protected static int PROPERTY_background
           
protected static int PROPERTY_border
           
protected static int PROPERTY_bounds
           
protected static int PROPERTY_cellBorder
           
protected static int PROPERTY_columnActiveGrid
           
protected static int PROPERTY_columnAutoResizeMode
           
protected static int PROPERTY_columnDraggable
           
protected static int PROPERTY_columnMargin
           
protected static int PROPERTY_columnModel
           
protected static int PROPERTY_columnResizable
           
protected static int PROPERTY_enabled
           
protected static int PROPERTY_focusBackgroundColor
           
protected static int PROPERTY_focusForegroundColor
           
protected static int PROPERTY_focusHighlightBorder
           
protected static int PROPERTY_focusTraversable
           
protected static int PROPERTY_font
           
protected static int PROPERTY_foreground
           
protected static int PROPERTY_gridColor
           
protected static int PROPERTY_height
           
protected static int PROPERTY_intercellSpacing
           
protected static int PROPERTY_lightweight
           
protected static int PROPERTY_model
           
protected static int PROPERTY_name
           
protected static int PROPERTY_nextFocusableComponent
           
protected static int PROPERTY_opaque
           
protected static int PROPERTY_optimizedDrawingEnabled
           
protected static int PROPERTY_preferredScrollableViewportSize
           
protected static int PROPERTY_rowActiveGrid
           
protected static int PROPERTY_rowAutoResizeMode
           
protected static int PROPERTY_rowDraggable
           
protected static int PROPERTY_rowMargin
           
protected static int PROPERTY_rowModel
           
protected static int PROPERTY_rowResizable
           
protected static int PROPERTY_scrollableTracksViewportHeight
           
protected static int PROPERTY_scrollableTracksViewportWidth
           
protected static int PROPERTY_selectionBackground
           
protected static int PROPERTY_selectionCellBorder
           
protected static int PROPERTY_selectionForeground
           
protected static int PROPERTY_selectionModel
           
protected static int PROPERTY_selectionPolicy
           
protected static int PROPERTY_selectionUnit
           
protected static int PROPERTY_showHorizontalLines
           
protected static int PROPERTY_showing
           
protected static int PROPERTY_showVerticalLines
           
protected static int PROPERTY_spanModel
           
protected static int PROPERTY_styleModel
           
protected static int PROPERTY_toolTipText
           
protected static int PROPERTY_visibleRect
           
protected static int PROPERTY_width
           
protected static int PROPERTY_x
           
protected static int PROPERTY_y
           
 
Constructor Summary
JSmartGridBeanInfo()
           
 
Method Summary
 java.beans.BeanInfo[] getAdditionalBeanInfo()
           
 int getDefaultEventIndex()
          A bean may have a "default" event that is the event that will mostly commonly be used by human's when using the bean.
 int getDefaultPropertyIndex()
          A bean may have a "default" property that is the property that will mostly commonly be initially chosen for update by human's who are customizing the bean.
 java.beans.EventSetDescriptor[] getEventSetDescriptors()
          Gets the beans EventSetDescriptors.
 java.awt.Image getIcon(int iconKind)
          This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc.
protected  java.lang.String getIconC16Name()
           
protected  java.lang.String getIconC32Name()
           
protected  java.lang.String getIconM16Name()
           
protected  java.lang.String getIconM32Name()
           
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
          Gets the beans PropertyDescriptors.
 
Methods inherited from class java.beans.SimpleBeanInfo
getBeanDescriptor, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_focusHighlightBorder

protected static final int PROPERTY_focusHighlightBorder

PROPERTY_columnModel

protected static final int PROPERTY_columnModel

PROPERTY_showing

protected static final int PROPERTY_showing

PROPERTY_gridColor

protected static final int PROPERTY_gridColor

PROPERTY_scrollableTracksViewportWidth

protected static final int PROPERTY_scrollableTracksViewportWidth

PROPERTY_width

protected static final int PROPERTY_width

PROPERTY_nextFocusableComponent

protected static final int PROPERTY_nextFocusableComponent

PROPERTY_focusTraversable

protected static final int PROPERTY_focusTraversable

PROPERTY_bounds

protected static final int PROPERTY_bounds

PROPERTY_foreground

protected static final int PROPERTY_foreground

PROPERTY_autoscrolls

protected static final int PROPERTY_autoscrolls

PROPERTY_optimizedDrawingEnabled

protected static final int PROPERTY_optimizedDrawingEnabled

PROPERTY_styleModel

protected static final int PROPERTY_styleModel

PROPERTY_rowModel

protected static final int PROPERTY_rowModel

PROPERTY_y

protected static final int PROPERTY_y

PROPERTY_x

protected static final int PROPERTY_x

PROPERTY_height

protected static final int PROPERTY_height

PROPERTY_selectionModel

protected static final int PROPERTY_selectionModel

PROPERTY_selectionBackground

protected static final int PROPERTY_selectionBackground

PROPERTY_opaque

protected static final int PROPERTY_opaque

PROPERTY_enabled

protected static final int PROPERTY_enabled

PROPERTY_selectionForeground

protected static final int PROPERTY_selectionForeground

PROPERTY_lightweight

protected static final int PROPERTY_lightweight

PROPERTY_font

protected static final int PROPERTY_font

PROPERTY_background

protected static final int PROPERTY_background

PROPERTY_columnMargin

protected static final int PROPERTY_columnMargin

PROPERTY_focusForegroundColor

protected static final int PROPERTY_focusForegroundColor

PROPERTY_spanModel

protected static final int PROPERTY_spanModel

PROPERTY_actionMap

protected static final int PROPERTY_actionMap

PROPERTY_selectionCellBorder

protected static final int PROPERTY_selectionCellBorder

PROPERTY_scrollableTracksViewportHeight

protected static final int PROPERTY_scrollableTracksViewportHeight

PROPERTY_showHorizontalLines

protected static final int PROPERTY_showHorizontalLines

PROPERTY_showVerticalLines

protected static final int PROPERTY_showVerticalLines

PROPERTY_preferredScrollableViewportSize

protected static final int PROPERTY_preferredScrollableViewportSize

PROPERTY_intercellSpacing

protected static final int PROPERTY_intercellSpacing

PROPERTY_border

protected static final int PROPERTY_border

PROPERTY_cellBorder

protected static final int PROPERTY_cellBorder

PROPERTY_model

protected static final int PROPERTY_model

PROPERTY_columnAutoResizeMode

protected static final int PROPERTY_columnAutoResizeMode

PROPERTY_selectionUnit

protected static final int PROPERTY_selectionUnit

PROPERTY_selectionPolicy

protected static final int PROPERTY_selectionPolicy

PROPERTY_rowAutoResizeMode

protected static final int PROPERTY_rowAutoResizeMode

PROPERTY_toolTipText

protected static final int PROPERTY_toolTipText

PROPERTY_focusBackgroundColor

protected static final int PROPERTY_focusBackgroundColor

PROPERTY_name

protected static final int PROPERTY_name

PROPERTY_alignmentY

protected static final int PROPERTY_alignmentY

PROPERTY_alignmentX

protected static final int PROPERTY_alignmentX

PROPERTY_visibleRect

protected static final int PROPERTY_visibleRect

PROPERTY_rowMargin

protected static final int PROPERTY_rowMargin

PROPERTY_rowResizable

protected static final int PROPERTY_rowResizable

PROPERTY_columnResizable

protected static final int PROPERTY_columnResizable

PROPERTY_autoCreateRowHeader

protected static final int PROPERTY_autoCreateRowHeader

PROPERTY_autoCreateColumnHeader

protected static final int PROPERTY_autoCreateColumnHeader

PROPERTY_rowDraggable

protected static final int PROPERTY_rowDraggable

PROPERTY_columnDraggable

protected static final int PROPERTY_columnDraggable

PROPERTY_columnActiveGrid

protected static final int PROPERTY_columnActiveGrid

PROPERTY_rowActiveGrid

protected static final int PROPERTY_rowActiveGrid
Constructor Detail

JSmartGridBeanInfo

public JSmartGridBeanInfo()
Method Detail

getIconC16Name

protected java.lang.String getIconC16Name()

getIconC32Name

protected java.lang.String getIconC32Name()

getIconM16Name

protected java.lang.String getIconM16Name()

getIconM32Name

protected java.lang.String getIconM32Name()

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Gets the beans PropertyDescriptors.
Returns:
An array of PropertyDescriptors describing the editable properties supported by this bean. May return null if the information should be obtained by automatic analysis.

If a property is indexed, then its entry in the result array will belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor. A client of getPropertyDescriptors can use "instanceof" to check if a given PropertyDescriptor is an IndexedPropertyDescriptor.

Overrides:
getPropertyDescriptors in class java.beans.SimpleBeanInfo

getEventSetDescriptors

public java.beans.EventSetDescriptor[] getEventSetDescriptors()
Gets the beans EventSetDescriptors.
Returns:
An array of EventSetDescriptors describing the kinds of events fired by this bean. May return null if the information should be obtained by automatic analysis.
Overrides:
getEventSetDescriptors in class java.beans.SimpleBeanInfo

getDefaultPropertyIndex

public int getDefaultPropertyIndex()
A bean may have a "default" property that is the property that will mostly commonly be initially chosen for update by human's who are customizing the bean.
Returns:
Index of default property in the PropertyDescriptor array returned by getPropertyDescriptors.

Returns -1 if there is no default property.

Overrides:
getDefaultPropertyIndex in class java.beans.SimpleBeanInfo

getDefaultEventIndex

public int getDefaultEventIndex()
A bean may have a "default" event that is the event that will mostly commonly be used by human's when using the bean.
Returns:
Index of default event in the EventSetDescriptor array returned by getEventSetDescriptors.

Returns -1 if there is no default event.

Overrides:
getDefaultEventIndex in class java.beans.SimpleBeanInfo

getIcon

public java.awt.Image getIcon(int iconKind)
This method returns an image object that can be used to represent the bean in toolboxes, toolbars, etc. Icon images will typically be GIFs, but may in future include other formats.

Beans aren't required to provide icons and may return null from this method.

There are four possible flavors of icons (16x16 color, 32x32 color, 16x16 mono, 32x32 mono). If a bean choses to only support a single icon we recommend supporting 16x16 color.

We recommend that icons have a "transparent" background so they can be rendered onto an existing background.

Parameters:
iconKind - The kind of icon requested. This should be one of the constant values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or ICON_MONO_32x32.
Returns:
An image object representing the requested icon. May return null if no suitable icon is available.
Overrides:
getIcon in class java.beans.SimpleBeanInfo

getAdditionalBeanInfo

public java.beans.BeanInfo[] getAdditionalBeanInfo()
Overrides:
getAdditionalBeanInfo in class java.beans.SimpleBeanInfo