: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw
Class LwBWinProducer

java.lang.Object
  |
  +--org.zaval.lw.LwWinProducer
        |
        +--org.zaval.lw.LwBWinProducer
All Implemented Interfaces:
java.util.EventListener, LwActionListener, Switchable

public class LwBWinProducer
extends LwWinProducer

This is implementation of the window producer that is used as the default by the LwWindow component to create its view.


Fields inherited from class org.zaval.lw.LwWinProducer
CLOSE_BUTTON_EL, ICON_EL, SIZING_EL
 
Constructor Summary
LwBWinProducer()
           
 
Method Summary
protected  void addElement(int type, LwComponent el)
          Invoked to add the specified window element.
protected  LwContainer createCaption()
          Creates and returns the caption component.
protected  LwComponent fetchElement(int type)
           
 java.lang.String getTitle()
          Gets the window title.
 void setCaptionColor(boolean state, java.awt.Color c)
          Sets the specified color that will be used as the background color of the window caption according to the specified window state.
 void setTitle(java.lang.String s)
          Sets the specified window title.
 void switched(boolean state)
          Invoked when the state of a switching component has been changed.
 
Methods inherited from class org.zaval.lw.LwWinProducer
actionPerformed, createRoot, createStatus, getCaptionComp, getElement, getElementTypes, getRoot, getStatusComp, getTargetWin, setElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LwBWinProducer

public LwBWinProducer()
Method Detail

setTitle

public void setTitle(java.lang.String s)
Description copied from class: LwWinProducer
Sets the specified window title. The method "knows" how and where the specified title should be applied.
Overrides:
setTitle in class LwWinProducer
Following copied from class: org.zaval.lw.LwWinProducer
Parameters:
s - the specified title.

getTitle

public java.lang.String getTitle()
Description copied from class: LwWinProducer
Gets the window title. The method defines the way how the window title should be fetched.
Overrides:
getTitle in class LwWinProducer
Following copied from class: org.zaval.lw.LwWinProducer
Returns:
a window title.

switched

public void switched(boolean state)
Description copied from interface: Switchable
Invoked when the state of a switching component has been changed.
Overrides:
switched in class LwWinProducer
Following copied from interface: org.zaval.lw.Switchable
Parameters:
state - the component state. true if the component has "on" state and false if the component has "off" state.

setCaptionColor

public void setCaptionColor(boolean state,
                            java.awt.Color c)
Sets the specified color that will be used as the background color of the window caption according to the specified window state.
Parameters:
state - the specified window state. true value corresponds to active window state and false value corresponds to non-active window state.
c - the specified color.

createCaption

protected LwContainer createCaption()
Description copied from class: LwWinProducer
Creates and returns the caption component. The method is executed one time during the window producer initialization. You should override the method to create own caption component.
Overrides:
createCaption in class LwWinProducer
Following copied from class: org.zaval.lw.LwWinProducer
Returns:
a caption component.

fetchElement

protected LwComponent fetchElement(int type)
Overrides:
fetchElement in class LwWinProducer

addElement

protected void addElement(int type,
                          LwComponent el)
Description copied from class: LwWinProducer
Invoked to add the specified window element. The method defines how and where the element should be added.
Overrides:
addElement in class LwWinProducer
Following copied from class: org.zaval.lw.LwWinProducer
Parameters:
type - the specified element type.
el - the specified element component.


: up