Package 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: nick@didkovsky.com
-
Method Summary
Modifier and Type Method Description voidaddActionListener(java.awt.event.ActionListener listener)java.lang.StringgetLabel()voidrequestFocus()voidsetBackground(java.awt.Color color)voidsetEnabled(boolean b)voidsetFont(java.awt.Font font)voidsetLabel(java.lang.String text)voidsetVisible(boolean b)Methods inherited from interface com.didkovsky.portview.PVComponent
addKeyListener, getBackground, getBounds, getComponent, getFont, getLocation, getParent, isEnabled, removeKeyListener, setLocation
-
Method Details
-
addActionListener
void addActionListener(java.awt.event.ActionListener listener) -
setBackground
void setBackground(java.awt.Color color)- Specified by:
setBackgroundin interfacePVComponent
-
setLabel
void setLabel(java.lang.String text) -
getLabel
java.lang.String getLabel() -
setFont
void setFont(java.awt.Font font)- Specified by:
setFontin interfacePVComponent
-
setEnabled
void setEnabled(boolean b)- Specified by:
setEnabledin interfacePVComponent
-
requestFocus
void requestFocus() -
setVisible
void setVisible(boolean b)
-