org.wcb.autohome.util
Class TriggerItem

java.lang.Object
  extended byorg.wcb.autohome.util.TriggerItem
All Implemented Interfaces:
X10DeviceConstants

public class TriggerItem
extends java.lang.Object
implements X10DeviceConstants

Filename: $Id: TriggerItem.java,v 1.4 2004/02/27 01:29:53 wbogaardt Exp $ Abstract: This class simply is an object holder for an icon and some detail information for table cell rendering.

Version:
1.0
Author:
wbogaardt

Field Summary
 
Fields inherited from interface org.wcb.autohome.interfaces.X10DeviceConstants
APPLIANCE_MODULE_OFF, APPLIANCE_MODULE_ON, BAUD, BAUD_RATE_ARRAY, BRIGHT_ACTION, BROWSER, CM11A_TRANSMITTER, CM17A_TRANSMITTER, CONNECT_ON_START, COUNTRY, DATA_BIT, DATA_BITS_ARRAY, DEVICE_ARRAY, DIM_ACTION, EMAIL_AUTHORIZE, EMAIL_FREQUENCY, EMAIL_FROM, EMAIL_PASSWORD, EMAIL_SMTP, EMAIL_TO, EMAIL_USERNAME, FALSE, HOUSE_CODES_ARRAY, INTERFACE_TYPE, LAMP_MODULE_OFF, LAMP_MODULE_ON, LANGUAGE, LAST_FILE, LOCALHOST, LOOK_AND_FEEL, MAC, METAL, MOTIF, OFF_ACTION, ON_ACTION, PARITY, PARITY_ARRAY, RECOVER_CM11A, RMI_HOST, SEPARATOR, SERIAL_PORT, SPEECH_ENGINE, STOP_BIT, STOP_BITS_ARRAY, TEST_TRANSMITTER, TIMER_EVENT, TRIGGER_EVENT, TRUE, USER_HOME, WINDOWS
 
Constructor Summary
TriggerItem(java.lang.Object[] array)
          This sets up the trigger items and puts them in icon form
 
Method Summary
 javax.swing.Icon getIcon()
          Return the image of component.
 int getType()
          The int value of the trigger type
 java.lang.String toString()
          String representation of the type so that it is easily understood by the end-user, which will see the name "trigger" or "event" instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TriggerItem

public TriggerItem(java.lang.Object[] array)
This sets up the trigger items and puts them in icon form

Parameters:
array - The objects in the array
Method Detail

getIcon

public javax.swing.Icon getIcon()
Return the image of component.

Returns:
X10 trigger type. either time or event icons

getType

public int getType()
The int value of the trigger type

Returns:
Can be either 10 for timer or 11 for trigger event.

toString

public java.lang.String toString()
String representation of the type so that it is easily understood by the end-user, which will see the name "trigger" or "event" instead.

Returns:
String of Event or Time.


Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.