JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid.beans
Class JCHiGridNode

java.lang.Object
  |
  +--com.klg.jclass.higrid.beans.JCHiGridNode
All Implemented Interfaces:
EventListener, JCDataListener, com.klg.jclass.datasource.customizer.NodePropertiesWrapper, Serializable

public class JCHiGridNode
extends Object
implements JCDataListener, com.klg.jclass.datasource.customizer.NodePropertiesWrapper, Serializable

This class encapsulates information about data and format of a node in JCHiGrid.

See Also:
Serialized Form

Field Summary
static int SECTION_AFTER_DETAILS
           
static int SECTION_BEFORE_DETAILS
           
static int SECTION_FOOTER
           
static int SECTION_HEADER
           
static int SECTION_MAX
           
static int SECTION_RECORD
           
 
Constructor Summary
JCHiGridNode(com.klg.jclass.higrid.beans.GridProperties comp)
           
JCHiGridNode(com.klg.jclass.higrid.beans.GridProperties comp, int type)
          Creates a JCHiGridNode with the data source type.
 
Method Summary
 void addJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
          Adds the specified listener to receive JCHiGridEvent objects.
 boolean equals(Object o)
          Compares all properties of JCHiGridNode to check equality.
 void fireJCHiGridEvent(com.klg.jclass.higrid.beans.JCHiGridEvent event)
          Informs registered listeners of a JCHiGridEvent.
 boolean getAllowHeightResizing(int section)
           
 int getAutoTraverse()
           
 Color getBackground(int section)
           
 Insets getBorderInsets(int section)
           
 int getBorderStyle(int section)
           
 com.klg.jclass.higrid.SortData getDefaultSortData()
           
 boolean getDoRetrieveAllFields()
           
 String getFontName(int section)
           
 int getFontSize(int section)
           
 int getFontStyle(int section)
           
 Color getForeground(int section)
           
 com.klg.jclass.higrid.beans.GridProperties getGridProperties()
           
 int getHeight(int section)
           
 com.klg.jclass.datasource.beans.NodeProperties getNodeProperties()
           
 com.klg.jclass.higrid.RowFormat getRowFormat(int section)
           
 Vector getSummaryColumns(int section)
           
 void initFormat()
          Initializes format.
 boolean isRepeatHeader()
           
 boolean isSectionShowing(int section)
           
 void JCDataValueChanged(com.klg.jclass.datasource.beans.JCDataEvent e)
          When value(s) of the data Bean component is changed.
 void removeJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
          Removes the specified listener so it no longer receives JCHiGridEvent objects.
 void setAllowHeightResizing(int section, boolean v)
           
 void setAutoTraverse(int v)
           
 void setBackground(int section, Color color)
           
 void setBorderInsets(int section, Insets i)
           
 void setBorderStyle(int section, int style)
           
 void setChanged()
          Exposes setChanged().
 void setDefaultSortData(com.klg.jclass.higrid.SortData sortData)
           
 void setDoRetrieveAllFields(boolean value)
           
 void setFont(int section, String name, int style, int size, FontMetrics fm)
           
 void setForeground(int section, Color color)
           
 void setHeight(int section, int height)
           
 void setRepeatHeader(boolean v)
           
 void setRowFormat(int section, com.klg.jclass.higrid.RowFormat format)
           
 void setSectionShowing(int section, boolean v)
           
 void setSummaryColumns(int section, Vector columns)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECTION_HEADER

public static final int SECTION_HEADER
See Also:
Constant Field Values

SECTION_BEFORE_DETAILS

public static final int SECTION_BEFORE_DETAILS
See Also:
Constant Field Values

SECTION_RECORD

public static final int SECTION_RECORD
See Also:
Constant Field Values

SECTION_AFTER_DETAILS

public static final int SECTION_AFTER_DETAILS
See Also:
Constant Field Values

SECTION_FOOTER

public static final int SECTION_FOOTER
See Also:
Constant Field Values

SECTION_MAX

public static final int SECTION_MAX
See Also:
Constant Field Values
Constructor Detail

JCHiGridNode

public JCHiGridNode(com.klg.jclass.higrid.beans.GridProperties comp)

JCHiGridNode

public JCHiGridNode(com.klg.jclass.higrid.beans.GridProperties comp,
                    int type)
Creates a JCHiGridNode with the data source type.

Parameters:
comp -
type -
Method Detail

initFormat

public void initFormat()
Initializes format.


getNodeProperties

public com.klg.jclass.datasource.beans.NodeProperties getNodeProperties()
Specified by:
getNodeProperties in interface com.klg.jclass.datasource.customizer.NodePropertiesWrapper

getGridProperties

public com.klg.jclass.higrid.beans.GridProperties getGridProperties()

isSectionShowing

public boolean isSectionShowing(int section)

setSectionShowing

public void setSectionShowing(int section,
                              boolean v)

setHeight

public void setHeight(int section,
                      int height)

getHeight

public int getHeight(int section)

setAllowHeightResizing

public void setAllowHeightResizing(int section,
                                   boolean v)

getAllowHeightResizing

public boolean getAllowHeightResizing(int section)

setBorderStyle

public void setBorderStyle(int section,
                           int style)

getBorderStyle

public int getBorderStyle(int section)

setBorderInsets

public void setBorderInsets(int section,
                            Insets i)

getBorderInsets

public Insets getBorderInsets(int section)

setForeground

public void setForeground(int section,
                          Color color)

getForeground

public Color getForeground(int section)

setBackground

public void setBackground(int section,
                          Color color)

getBackground

public Color getBackground(int section)

setFont

public void setFont(int section,
                    String name,
                    int style,
                    int size,
                    FontMetrics fm)

getFontName

public String getFontName(int section)

getFontStyle

public int getFontStyle(int section)

getFontSize

public int getFontSize(int section)

setAutoTraverse

public void setAutoTraverse(int v)

getAutoTraverse

public int getAutoTraverse()

setDefaultSortData

public void setDefaultSortData(com.klg.jclass.higrid.SortData sortData)

getDefaultSortData

public com.klg.jclass.higrid.SortData getDefaultSortData()

setRepeatHeader

public void setRepeatHeader(boolean v)

isRepeatHeader

public boolean isRepeatHeader()

getRowFormat

public com.klg.jclass.higrid.RowFormat getRowFormat(int section)

setRowFormat

public void setRowFormat(int section,
                         com.klg.jclass.higrid.RowFormat format)

getSummaryColumns

public Vector getSummaryColumns(int section)

setSummaryColumns

public void setSummaryColumns(int section,
                              Vector columns)

setChanged

public void setChanged()
Exposes setChanged(). It is used when a CellFormat in a RowFormat is changed.


equals

public boolean equals(Object o)
Compares all properties of JCHiGridNode to check equality. It is done in this way because of serialization. After serialization, a JCHiGridNode is stored in different memory space than the JCHiGridNode before serialization.

Overrides:
equals in class Object
Parameters:
o -
Returns:

getDoRetrieveAllFields

public boolean getDoRetrieveAllFields()

setDoRetrieveAllFields

public void setDoRetrieveAllFields(boolean value)

addJCHiGridListener

public void addJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
Adds the specified listener to receive JCHiGridEvent objects.

Parameters:
listener - a listener

removeJCHiGridListener

public void removeJCHiGridListener(com.klg.jclass.higrid.beans.JCHiGridListener listener)
Removes the specified listener so it no longer receives JCHiGridEvent objects.

Parameters:
listener - a listener

fireJCHiGridEvent

public void fireJCHiGridEvent(com.klg.jclass.higrid.beans.JCHiGridEvent event)
Informs registered listeners of a JCHiGridEvent.

Parameters:
event - the JCHiGridEvent

JCDataValueChanged

public void JCDataValueChanged(com.klg.jclass.datasource.beans.JCDataEvent e)
When value(s) of the data Bean component is changed.

Specified by:
JCDataValueChanged in interface JCDataListener
Parameters:
e -

Copyright © 2004 Quest Software Inc..
All rights reserved.