com.didkovsky.portview
Interface PVButton

All Superinterfaces:
PVComponent
All Known Implementing Classes:
PVButtonAWT, PVButtonSwing

public interface PVButton
extends PVComponent

com.didkovsky.portview is a Java package for creating UI components in either Swing or AWT (switchable depending on PortView.getViewFactory()) PVButton is an interface for a Button component that can be either AWT or Swing depending on ViewFactory

Author:
Nick Didkovsky, (c) 2004 All rights reserved, Email: didkovn@mail.rockefeller.edu

Method Summary
 void addActionListener(java.awt.event.ActionListener listener)
           
 java.lang.String getLabel()
           
 void requestFocus()
           
 void setBackground(java.awt.Color color)
           
 void setEnabled(boolean b)
           
 void setFont(java.awt.Font font)
           
 void setLabel(java.lang.String text)
           
 void setVisible(boolean b)
           
 
Methods inherited from interface com.didkovsky.portview.PVComponent
addKeyListener, getBackground, getBounds, getComponent, getFont, getParent, isEnabled, removeKeyListener, setLocation
 

Method Detail

addActionListener

void addActionListener(java.awt.event.ActionListener listener)

setBackground

void setBackground(java.awt.Color color)
Specified by:
setBackground in interface PVComponent

setLabel

void setLabel(java.lang.String text)

getLabel

java.lang.String getLabel()

setFont

void setFont(java.awt.Font font)
Specified by:
setFont in interface PVComponent

setEnabled

void setEnabled(boolean b)
Specified by:
setEnabled in interface PVComponent

requestFocus

void requestFocus()

setVisible

void setVisible(boolean b)