Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix ]     Changes
    Public API
    Source Code Main Page
        Java [ Common · Win · Mac · Nix ]     Native Code [ Common · Win · Mac · Nix ]     Manifest
        Native Code Overviews [ Common · Win · Mac · Nix · Strings ]     Macros [ General · Native Macros ]
        Walkthroughs [ Java only · Java and native ]     Building [ Win · Mac · Nix ]     Distribution Issues

All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.tolstoy.imagemeister.ButtonPanel
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.tolstoy.imagemeister.ButtonPanel

  Summary

class  ButtonPanel
     extends java.awt.Panel
     implements com.tolstoy.imagemeister.ButtonPanelI
{
          // Fields 29
     private ImageButton btn0;
     private ImageButton btn1;
     private ImageButton btn2;
     private ImageButton btn3;
     private ImageButton btn4;
     private ImageButtonToggle cb1;
     private ImageButtonToggle cb2;
     private static final String copyright;
     private String fileString;
     private static final int kButton1X;
     private static final int kButton2X;
     private static final int kButton3X;
     private static final int kButton4X;
     private static final int kButtonH;
     private static final int kButtonW;
     private static final int kButtonY;
     private static final int kCheckbox1X;
     private static final int kCheckbox2X;
     private static final int kCheckboxH;
     private static final int kCheckboxW;
     private static final int kLevelH;
     private static final int kLevelW;
     private static final int kLevelX;
     private static final int kLevelY;
     private static final int kUpALevelH;
     private static final int kUpALevelW;
     private static final int kUpALevelX;
     private static final int kUpALevelY;
     private ButtonPanelOwnerI owner;

          // Constructors 1
     public ButtonPanel(ButtonPanelOwnerI, String);

          // Methods 6
     public boolean getCheckboxValue(int);
     public boolean handleEvent(Event);
     public void paint(Graphics);
     public Dimension preferredSize();
     public void setCheckboxValue(int, boolean);
     public void setFileString(String);
}

The control bar at the top of ImageMeister.

When this object is created, it is passed an object implementing the ButtonPanelOwnerI interface; this object will be called when the user clicks one of the buttons.

This object also contains the two checkboxes and the text area in which the current folder is displayed.

Author:
Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.




  Fields

· copyright

Summary  |  Top

   private static final String copyright


· btn0

Summary  |  Top
   private ImageButton btn0


· btn1

Summary  |  Top
   private ImageButton btn1


· btn2

Summary  |  Top
   private ImageButton btn2


· btn3

Summary  |  Top
   private ImageButton btn3


· btn4

Summary  |  Top
   private ImageButton btn4


· cb1

Summary  |  Top
   private ImageButtonToggle cb1


· cb2

Summary  |  Top
   private ImageButtonToggle cb2


· fileString

Summary  |  Top
   private String fileString


· owner

Summary  |  Top
   private ButtonPanelOwnerI owner


· kButtonW

Summary  |  Top
   private static final int kButtonW


· kButtonH

Summary  |  Top
   private static final int kButtonH


· kButtonY

Summary  |  Top
   private static final int kButtonY


· kCheckboxW

Summary  |  Top
   private static final int kCheckboxW


· kCheckboxH

Summary  |  Top
   private static final int kCheckboxH


· kButton1X

Summary  |  Top
   private static final int kButton1X


· kButton2X

Summary  |  Top
   private static final int kButton2X


· kButton3X

Summary  |  Top
   private static final int kButton3X


· kButton4X

Summary  |  Top
   private static final int kButton4X


· kCheckbox1X

Summary  |  Top
   private static final int kCheckbox1X


· kCheckbox2X

Summary  |  Top
   private static final int kCheckbox2X


· kLevelX

Summary  |  Top
   private static final int kLevelX


· kLevelY

Summary  |  Top
   private static final int kLevelY


· kLevelW

Summary  |  Top
   private static final int kLevelW


· kLevelH

Summary  |  Top
   private static final int kLevelH


· kUpALevelX

Summary  |  Top
   private static final int kUpALevelX


· kUpALevelY

Summary  |  Top
   private static final int kUpALevelY


· kUpALevelW

Summary  |  Top
   private static final int kUpALevelW


· kUpALevelH

Summary  |  Top
   private static final int kUpALevelH


  Constructors

· ButtonPanel

Summary  |  Top

   public ButtonPanel(ButtonPanelOwnerI onr, 
                      String imBase) 

Parameter Description
onr the object which will be called when a button is pressed
imBase the path to the folder containing the .gif files with the button graphics



  Methods

· getCheckboxValue

Summary  |  Top
   public boolean getCheckboxValue(int which) 

From the ButtonPanelI interface.

Implements:
getCheckboxValue in interface ButtonPanelI


· setCheckboxValue

Summary  |  Top
   public void setCheckboxValue(int which, 
                                boolean b) 

From the ButtonPanelI interface.

Implements:
setCheckboxValue in interface ButtonPanelI


· setFileString

Summary  |  Top
   public void setFileString(String s) 

The text area showing the current folder ("", etc.)



· handleEvent

Summary  |  Top
   public boolean handleEvent(Event e) 
Overrides:
handleEvent in class Component


· paint

Summary  |  Top
   public void paint(Graphics g) 
Overrides:
paint in class Container


· preferredSize

Summary  |  Top
   public Dimension preferredSize() 
Overrides:
preferredSize in class Container


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7