com.partnersoft.v3x.apps.MapBrowser
Class MapAppCardStd

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.MapAppCardStd
All Implemented Interfaces:
MapAppCard
Direct Known Subclasses:
DataViewCard, FindItemCard, JobCard, RedlineCard, RoverLegendCtronCard

public class MapAppCardStd
extends java.lang.Object
implements MapAppCard

A standard implementation of MapAppCard.


Field Summary
protected  javax.swing.JPanel gui
           
protected  java.lang.String name
           
protected  boolean scrollbarReallyNecessary
          Set this in your subclass' constructor.
protected  MapDataSource source
           
protected  javax.swing.JPanel subGui
           
 
Constructor Summary
MapAppCardStd()
           
MapAppCardStd(java.lang.String stretching, java.lang.String anchor)
           
 
Method Summary
 void addComponentToSubsection(java.awt.Component component)
          Adds a component to the current subsection.
 void addSubsection(java.lang.String name)
          This method depends heavily on the order in which you call it and addComponentToSubsection().
 void addSubsection(java.lang.String name, java.lang.String stretch, java.lang.String anchor)
          This method depends heavily on the order in which you call it and addComponentToSubsection().
 java.awt.Component getGUI()
          GUI panel for the card.
 java.lang.String getName()
          Name for the card (used as label and key).
 boolean isAScrollbarReallyNecessary()
           
 void setMapApp(MapApp app)
          Called to hook up any listeners etc.
 void setVisible(boolean tizit)
          Fired when card is hidden or viewed.
 java.util.Iterator sources()
          Viewable data sources for this card.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

protected javax.swing.JPanel gui

subGui

protected javax.swing.JPanel subGui

name

protected java.lang.String name

source

protected MapDataSource source

scrollbarReallyNecessary

protected boolean scrollbarReallyNecessary
Set this in your subclass' constructor.

Constructor Detail

MapAppCardStd

public MapAppCardStd()

MapAppCardStd

public MapAppCardStd(java.lang.String stretching,
                     java.lang.String anchor)
Method Detail

sources

public java.util.Iterator sources()
Viewable data sources for this card.

Specified by:
sources in interface MapAppCard

getGUI

public java.awt.Component getGUI()
GUI panel for the card.

Specified by:
getGUI in interface MapAppCard

getName

public java.lang.String getName()
Name for the card (used as label and key).

Specified by:
getName in interface MapAppCard

setVisible

public void setVisible(boolean tizit)
Fired when card is hidden or viewed. By default, does nothing; override for your own behaviors.

Specified by:
setVisible in interface MapAppCard

setMapApp

public void setMapApp(MapApp app)
Called to hook up any listeners etc. to the MapViewPanel; provides hook to MapApp that allows control of zooming and other behavior. By default, does nothing; override for your own behaviors.

Specified by:
setMapApp in interface MapAppCard

addSubsection

public void addSubsection(java.lang.String name,
                          java.lang.String stretch,
                          java.lang.String anchor)
This method depends heavily on the order in which you call it and addComponentToSubsection(). It estabilishes a named, labeled subsection; this subsection will be used until another is established. Components added using addComponent will, in the meantime, go into this section. If the name is null, doesn't put a titled border around the subsection.


addSubsection

public void addSubsection(java.lang.String name)
This method depends heavily on the order in which you call it and addComponentToSubsection(). It estabilishes a named, labeled subsection; this subsection will be used until another is established. Components added using addComponent will, in the meantime, go into this section. If the name is null, doesn't put a titled border around the subsection.


addComponentToSubsection

public void addComponentToSubsection(java.awt.Component component)
Adds a component to the current subsection.


isAScrollbarReallyNecessary

public boolean isAScrollbarReallyNecessary()
Specified by:
isAScrollbarReallyNecessary in interface MapAppCard