com.partnersoft.maps.app
Interface MapAppSkin

All Known Implementing Classes:
AbstractMapAppSkin, DesktopSkin, DispatchSkin, HeadlessSkin, TruckSkin

public interface MapAppSkin

The MapAppSkin does two things: it sets up the GUI in setup(), and it shows different parts of the GUI in the showX() functions. The initialization steps are hard to follow. First, MapAppSkin is created. MapAppSkin creates any windows it needs, but it doesn't set itself up. Second, MapApp is created. After MapApp has created its GUI, it calls MapAppSkin.setup(). It got that way because the MapAppSkin and the MapApp both depend on each other. Specifically, in MapApp's initialization, MapApp was asking MapAppSkin for its main window before MapAppSkin had set up its main window. NullPointerExceptions ensued.

Copyright 2006-2009 Partner Software, Inc.

Version:
$Id: MapAppSkin.java 2328 2010-01-06 15:38:22Z paul $
Author:
Russell Cagle

Method Summary
 void addCustomControlPanel(java.lang.String name, java.awt.Container panel)
           
 java.awt.Color getBackgroundColor()
           
 java.awt.Color getForegroundColor()
           
 MainWindow getWindow()
           
 void openWindows()
           
 void setColorsOn(java.awt.Component component)
           
 void setup(MapApp app)
          Creates the gui.
 void showDataTab()
           
 void showFindTab()
           
 void showMap()
           
 void teardown()
          Kills the gui.
 

Method Detail

getWindow

MainWindow getWindow()

setup

void setup(MapApp app)
Creates the gui.

Parameters:
app -

showDataTab

void showDataTab()

showFindTab

void showFindTab()

showMap

void showMap()

teardown

void teardown()
Kills the gui. The idea is to switch between skins.


openWindows

void openWindows()

addCustomControlPanel

void addCustomControlPanel(java.lang.String name,
                           java.awt.Container panel)

getBackgroundColor

java.awt.Color getBackgroundColor()

getForegroundColor

java.awt.Color getForegroundColor()

setColorsOn

void setColorsOn(java.awt.Component component)