All Packages Class Hierarchy This Package Previous Next Index
Class com.micronova.mnfc.IGridView
java.lang.Object
|
+----netscape.application.View
|
+----com.micronova.mnfc.IGridView
- public class IGridView
- extends View
- implements LayoutManager, Target
IGridView is a scrollable grid control with 9 panes.
The grid displayed is defined by the IGridDef object.
IGridView consists of 9 panes; TOPLEFT (fixed size)
TOPCENTER (horizontally scrollable, fixed height),
TOPRIGHT (fixed size),
MIDDLELEFT (vertically scrollable, fixed width),
MIDDLECENTER (vertically and horizontally scrollable),
MIDDLERIGHT (vertically scrollable, fixed width),
BOTOTMLEFT (fixed size),
BOTTOMCENTER (horizontally scrollable, fixed height),
BOTTOMRIGHT (fixed size).
A common Border separates the panes (default is BezelBorder.groovedBezel()).
- Version:
- 1.0
- Author:
- Makoto Nagata, MicroNova
-
BOTTOMCENTER
- Pane index for the bottom-center pane.
-
BOTTOMLEFT
- Pane index for the bottom-left pane.
-
bottomMargin
- Height of the bottom pane (determined by teh BOTTOMRIGHT pane).
-
BOTTOMRIGHT
- Pane index for the bottom-right pane.
-
containerViewArray
- Holds ContainerViews for each pane.
-
hasHorizScrollBar
- Set to true if horizontal scroll bar is visible.
-
hasVertScrollBar
- Set to true if vertical scroll bar is visible.
-
horizScrollBar
- Horizontal scroll bar.
-
iGridPaneArray
- Holds IGridPanes for each pane.
-
leftMargin
- Width of the left pane (determined by the TOPLEFT pane).
-
MIDDLECENTER
- Pane index for the middle-center pane.
-
MIDDLELEFT
- Pane index for the middle-left pane.
-
MIDDLERIGHT
- Pane index for the middle-right pane.
-
paneBorder
- Pane border.
-
paneBorderHeight
- border.heightMargin().
-
paneBorderWidth
- border.widthMargin().
-
rightMargin
- Width of the right pane (determined by the BOTTOMRIGHT pane).
-
scrollBarSize
- Scroll Bar size.
-
scrollViewArray
- Holds ScrollViews for each pane.
-
TOPCENTER
- Pane index for the top-center pane.
-
TOPLEFT
- Pane index for the top-left pane.
-
topMargin
- Height of the top pane (determined by the TOPLEFT pane).
-
TOPRIGHT
- Pane index for the top-right pane.
-
vertScrollBar
- Vertical scroll bar.
-
viewHeight
- ContainerView height for each pane.
-
viewWidth
- ContainerView width for each pane.
-
viewX
- ContainerView boundaries in X direction.
-
viewY
- ContainerView boundaries in Y direction.
-
IGridView()
- Creates an IGridView without any IGridDef.
-
IGridView(IGridDef)
- Creates an IGridView with a given IGridDef.
-
addSubview(View)
-
-
computeLayout()
- Computes layout.
-
computePaneBorderMargin()
- Computes pane border margins.
-
computeStandardPaneSubGrid(IGridDef, int, int, int, int, int, Rect)
- Allocates the panes as follows (L=leftMargin, R=rightMargin, T=topMargin, B=bottomMargin, X=XCount, Y=YCount):
- TOPLEFT: (0, 0, L, T)
- TOPCENTER: (L + R, 0, X - (L + R), T)
- TOPRIGHT: (L, 0, R, T)
- MIDDLELEFT: (0, T + B, L, Y - (T + B))
- MIDDLECENTER: (L + R, T + B, X - (L + R), Y - (T + B))
- MIDDLERIGHT: (L, T + B, R, Y - (T + B))
- BOTTOMLEFT: (0, T, L, B)
- BOTTOMCENTER: (L + R, T, X - (L + R), B)
- BOTTOMRIGHT: (L, T, R, B)
-
createContainerView(int)
- Creates ContainerView for the given pane index.
-
createIGridPane(int)
- Creates IGridPane for the given pane index.
-
createScrollView(int)
- Creates ScrollView for the given pane index.
-
extendSubGrid(Rect)
- Extends a subGrid to contain all the extended subcells.
-
layoutView(View, int, int)
-
-
performCommand(String, Object)
- Handles multi-pane scrolling.
-
removeSubview(View)
-
-
scrollCellToVisible(Point)
- Scrolls the main view to show the cell at the index.
-
setIGridDef(IGridDef)
- Sets IGridDef object.
-
setPaneBorder(Border)
- Sets pane border.
-
sizeToIGridSize()
- Resizes this window so that the whole grid is displayed (without scrolling).
-
updateCells(Rect)
- Updates cells in subGrid (in all panes).
-
updateCellsNow(Rect)
- Updates cells in subGrid (in all panes) immediately.
TOPLEFT
public static final int TOPLEFT
- Pane index for the top-left pane.
TOPCENTER
public static final int TOPCENTER
- Pane index for the top-center pane.
TOPRIGHT
public static final int TOPRIGHT
- Pane index for the top-right pane.
MIDDLELEFT
public static final int MIDDLELEFT
- Pane index for the middle-left pane.
MIDDLECENTER
public static final int MIDDLECENTER
- Pane index for the middle-center pane.
MIDDLERIGHT
public static final int MIDDLERIGHT
- Pane index for the middle-right pane.
BOTTOMLEFT
public static final int BOTTOMLEFT
- Pane index for the bottom-left pane.
BOTTOMCENTER
public static final int BOTTOMCENTER
- Pane index for the bottom-center pane.
BOTTOMRIGHT
public static final int BOTTOMRIGHT
- Pane index for the bottom-right pane.
iGridPaneArray
public final IGridPane iGridPaneArray[]
- Holds IGridPanes for each pane. Each IGridPane is a subview of ScrollView which in turn in a subview of ContainerView.
scrollViewArray
public final ScrollView scrollViewArray[]
- Holds ScrollViews for each pane.
containerViewArray
public final ContainerView containerViewArray[]
- Holds ContainerViews for each pane.
horizScrollBar
public ScrollBar horizScrollBar
- Horizontal scroll bar.
vertScrollBar
public ScrollBar vertScrollBar
- Vertical scroll bar.
paneBorder
public Border paneBorder
- Pane border. Default is BezelBorder.groovedBezel().
paneBorderWidth
public int paneBorderWidth
- border.widthMargin().
paneBorderHeight
public int paneBorderHeight
- border.heightMargin().
leftMargin
public int leftMargin
- Width of the left pane (determined by the TOPLEFT pane).
rightMargin
public int rightMargin
- Width of the right pane (determined by the BOTTOMRIGHT pane).
topMargin
public int topMargin
- Height of the top pane (determined by the TOPLEFT pane).
bottomMargin
public int bottomMargin
- Height of the bottom pane (determined by teh BOTTOMRIGHT pane).
viewX
public final int viewX[]
- ContainerView boundaries in X direction.
viewY
public final int viewY[]
- ContainerView boundaries in Y direction.
viewWidth
public final int viewWidth[]
- ContainerView width for each pane.
viewHeight
public final int viewHeight[]
- ContainerView height for each pane.
hasHorizScrollBar
public boolean hasHorizScrollBar
- Set to true if horizontal scroll bar is visible.
hasVertScrollBar
public boolean hasVertScrollBar
- Set to true if vertical scroll bar is visible.
scrollBarSize
public int scrollBarSize
- Scroll Bar size.
IGridView
public IGridView(IGridDef iGridDef)
- Creates an IGridView with a given IGridDef.
IGridView
public IGridView()
- Creates an IGridView without any IGridDef.
createIGridPane
public IGridPane createIGridPane(int paneIndex)
- Creates IGridPane for the given pane index. Override this to use customized IGridPanes.
createContainerView
public ContainerView createContainerView(int paneIndex)
- Creates ContainerView for the given pane index. Override this to use customized ContainerViews.
createScrollView
public ScrollView createScrollView(int paneIndex)
- Creates ScrollView for the given pane index. Override this to use customized ScrollViews.
setIGridDef
public void setIGridDef(IGridDef iGridDef)
- Sets IGridDef object. All the subviews (panes, scroll bars) are
created here.
setPaneBorder
public void setPaneBorder(Border paneBorder)
- Sets pane border.
computePaneBorderMargin
public void computePaneBorderMargin()
- Computes pane border margins.
computeLayout
public void computeLayout()
- Computes layout.
addSubview
public void addSubview(View aView)
- Overrides:
- addSubview in class View
removeSubview
public void removeSubview(View aView)
- Overrides:
- removeSubview in class View
layoutView
public void layoutView(View aView,
int deltaWidth,
int deltaHeight)
updateCells
public void updateCells(Rect subGrid)
- Updates cells in subGrid (in all panes).
updateCellsNow
public void updateCellsNow(Rect subGrid)
- Updates cells in subGrid (in all panes) immediately.
extendSubGrid
public void extendSubGrid(Rect subGrid)
- Extends a subGrid to contain all the extended subcells.
computeStandardPaneSubGrid
public static Rect computeStandardPaneSubGrid(IGridDef iGridDef,
int paneIndex,
int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin,
Rect paneRect)
- Allocates the panes as follows (L=leftMargin, R=rightMargin, T=topMargin, B=bottomMargin, X=XCount, Y=YCount):
- TOPLEFT: (0, 0, L, T)
- TOPCENTER: (L + R, 0, X - (L + R), T)
- TOPRIGHT: (L, 0, R, T)
- MIDDLELEFT: (0, T + B, L, Y - (T + B))
- MIDDLECENTER: (L + R, T + B, X - (L + R), Y - (T + B))
- MIDDLERIGHT: (L, T + B, R, Y - (T + B))
- BOTTOMLEFT: (0, T, L, B)
- BOTTOMCENTER: (L + R, T, X - (L + R), B)
- BOTTOMRIGHT: (L, T, R, B)
scrollCellToVisible
public void scrollCellToVisible(Point index)
- Scrolls the main view to show the cell at the index.
sizeToIGridSize
public void sizeToIGridSize()
- Resizes this window so that the whole grid is displayed (without scrolling).
performCommand
public void performCommand(String command,
Object object)
- Handles multi-pane scrolling.
All Packages Class Hierarchy This Package Previous Next Index