Project MVC architecture
version 0.1 - 010723

lib.gui.mvc
Class ViewFactory

java.lang.Object
  |
  +--lib.gui.mvc.ViewFactory

public class ViewFactory
extends java.lang.Object

ViewFactory.

Synopsis

Test command: java -classpath classes lib.gui.mvc.ViewFactory [--help]

Version:
2001-07-22
Author:
Ivan Wellesz - ivanw@club-internet.fr

Field Summary
(package private) static java.awt.Color BACKGROUND_BUTTON
           
(package private) static java.awt.Color BACKGROUND_LABEL
           
(package private) static java.awt.Color BACKGROUND_TEXTFIELD
           
(package private) static java.awt.Color BACKGROUND_VIEW
          Colors.
private static java.lang.String CODEBASE_DEFAULT
           
private static java.net.URL CodeBaseURL
           
protected static java.lang.String VIEW_FACTORY
          Identifiers.
 
Constructor Summary
ViewFactory()
           
 
Method Summary
private static void add_Components(View view, java.lang.String[] component_names, ObjectSpec objectSpec)
          private add_Components - Adds the specified View components.
private static void adjust_Button(View view, java.lang.String bName, ImageButton b, ObjectSpec objectSpec)
          private adjust_Button - Set ImageButton attributes.
private static void adjust_Label(View view, java.lang.String lName, ImageLabel l, ObjectSpec objectSpec)
          private adjust_Label - Set ImageLabel attributes.
private static void adjust_TextArea(View view, java.lang.String taName, java.awt.TextArea ta, ObjectSpec objectSpec)
          private adjust_TextArea - Set TextArea attributes.
private static void adjust_TextField(View view, java.lang.String tfName, java.awt.TextField tf, ObjectSpec objectSpec)
          private adjust_TextField - Set TextField attributes.
private static View build_GUI(ObjectSpec objectSpec, java.lang.String image_directory, java.lang.String image_background_name, java.lang.String image_buttons_name, java.lang.String[] component_names)
          private build_GUI - Builds the view and adds the named Component list.
static View createView(java.lang.String attributes_String)
          createView attributes_String_array.
static View createView(java.lang.String attributes_fileName, java.lang.String image_directory, java.lang.String image_name)
          createView attributes_fileName image_directory image_name.
static View createView(java.lang.String attributes_fileName, java.lang.String image_directory, java.lang.String image_background_name, java.lang.String image_name)
          createView attributes_fileName image_directory image_background_name image_name.
static View createView(java.lang.String attributes_fileName, java.lang.String image_directory, java.lang.String image_name, java.lang.String[] component_names)
          createView attributes_fileName image_directory image_name component_names.
static View createView(java.lang.String attributes_fileName, java.lang.String image_directory, java.lang.String image_background_name, java.lang.String image_buttons_name, java.lang.String[] component_names)
          createView attributes_fileName image_directory image_background_name image_buttons_name component_names.
private static java.awt.Image getAccessibleImage(java.lang.String image_path)
          private getAccessibleImage - Returns the specified image only if it's URL is accessible.
static void main(java.lang.String[] args)
          main - Calls ViewTest main.
static void set_CodeBase(java.lang.String codeBase)
          set_CodeBase.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

VIEW_FACTORY

protected static java.lang.String VIEW_FACTORY
Identifiers. // {{{

CODEBASE_DEFAULT

private static final java.lang.String CODEBASE_DEFAULT

BACKGROUND_VIEW

static final java.awt.Color BACKGROUND_VIEW
Colors. // {{{

BACKGROUND_BUTTON

static final java.awt.Color BACKGROUND_BUTTON

BACKGROUND_LABEL

static final java.awt.Color BACKGROUND_LABEL

BACKGROUND_TEXTFIELD

static final java.awt.Color BACKGROUND_TEXTFIELD

CodeBaseURL

private static java.net.URL CodeBaseURL
Constructor Detail

ViewFactory

public ViewFactory()
Method Detail

main

public static void main(java.lang.String[] args)
main - Calls ViewTest main. // {{{

set_CodeBase

public static void set_CodeBase(java.lang.String codeBase)
set_CodeBase. // {{{

createView

public static View createView(java.lang.String attributes_String)
createView attributes_String_array. // {{{

createView

public static View createView(java.lang.String attributes_fileName,
                              java.lang.String image_directory,
                              java.lang.String image_name)
createView attributes_fileName image_directory image_name. // {{{

createView

public static View createView(java.lang.String attributes_fileName,
                              java.lang.String image_directory,
                              java.lang.String image_name,
                              java.lang.String[] component_names)
createView attributes_fileName image_directory image_name component_names. // {{{

createView

public static View createView(java.lang.String attributes_fileName,
                              java.lang.String image_directory,
                              java.lang.String image_background_name,
                              java.lang.String image_name)
createView attributes_fileName image_directory image_background_name image_name. // {{{

createView

public static View createView(java.lang.String attributes_fileName,
                              java.lang.String image_directory,
                              java.lang.String image_background_name,
                              java.lang.String image_buttons_name,
                              java.lang.String[] component_names)
createView attributes_fileName image_directory image_background_name image_buttons_name component_names. // {{{

build_GUI

private static View build_GUI(ObjectSpec objectSpec,
                              java.lang.String image_directory,
                              java.lang.String image_background_name,
                              java.lang.String image_buttons_name,
                              java.lang.String[] component_names)
private build_GUI - Builds the view and adds the named Component list. // {{{

add_Components

private static void add_Components(View view,
                                   java.lang.String[] component_names,
                                   ObjectSpec objectSpec)
private add_Components - Adds the specified View components. // {{{

adjust_Label

private static void adjust_Label(View view,
                                 java.lang.String lName,
                                 ImageLabel l,
                                 ObjectSpec objectSpec)
private adjust_Label - Set ImageLabel attributes. // {{{

adjust_Button

private static void adjust_Button(View view,
                                  java.lang.String bName,
                                  ImageButton b,
                                  ObjectSpec objectSpec)
private adjust_Button - Set ImageButton attributes. // {{{

adjust_TextField

private static void adjust_TextField(View view,
                                     java.lang.String tfName,
                                     java.awt.TextField tf,
                                     ObjectSpec objectSpec)
private adjust_TextField - Set TextField attributes. // {{{

adjust_TextArea

private static void adjust_TextArea(View view,
                                    java.lang.String taName,
                                    java.awt.TextArea ta,
                                    ObjectSpec objectSpec)
private adjust_TextArea - Set TextArea attributes. // {{{

getAccessibleImage

private static java.awt.Image getAccessibleImage(java.lang.String image_path)
private getAccessibleImage - Returns the specified image only if it's URL is accessible. // {{{

MVC architecture

Document Tech Infos - Ivan Wellesz