fi.paatti.mobile.views.eventlistview
Class EventListItem

java.lang.Object
  extended by com.vaadin.ui.AbstractComponent
      extended by com.vaadin.ui.AbstractComponentContainer
          extended by com.vaadin.ui.AbstractLayout
              extended by com.vaadin.ui.AbstractOrderedLayout
                  extended by com.vaadin.ui.HorizontalLayout
                      extended by fi.paatti.mobile.views.listview.ListItem
                          extended by fi.paatti.mobile.views.eventlistview.EventListItem
All Implemented Interfaces:
com.vaadin.event.LayoutEvents.LayoutClickNotifier, com.vaadin.event.MethodEventSource, com.vaadin.terminal.Paintable, com.vaadin.terminal.Sizeable, com.vaadin.terminal.VariableOwner, com.vaadin.ui.Component, com.vaadin.ui.ComponentContainer, com.vaadin.ui.Layout, com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler, Serializable, EventListener

public class EventListItem
extends ListItem
implements Serializable

A single item in an event list.

Since:
0.0.5
Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi @date 24.4.2012
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Layout
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.MarginInfo, com.vaadin.ui.Layout.SpacingHandler
 
Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener
 
Field Summary
static int STATUS_AVAILABLE
          The value that is used to show that the event item is available (it can be started).
static int STATUS_UNAVAILABLE
          The value that is used to show that the event item is not available (it cannot be started yet).
static int STATUS_UNFINISHED
          The value that is used to show that the event item is available and is unfinished (it is over it´s due time).
static int STATUS_VOLUNTARY
          The value that is used to show that the event item is a voluntary event.
 
Fields inherited from class com.vaadin.ui.AbstractOrderedLayout
ALIGNMENT_DEFAULT, components
 
Fields inherited from class com.vaadin.ui.AbstractLayout
margins
 
Fields inherited from interface com.vaadin.ui.Layout.AlignmentHandler
ALIGNMENT_BOTTOM, ALIGNMENT_HORIZONTAL_CENTER, ALIGNMENT_LEFT, ALIGNMENT_RIGHT, ALIGNMENT_TOP, ALIGNMENT_VERTICAL_CENTER
 
Fields inherited from interface com.vaadin.terminal.Sizeable
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
EventListItem(com.vaadin.data.Item item, String idColumn, String... textRows)
          Constructor.
 
Method Summary
 int getStatus()
          Get the status of the event item.
 void setStatus(int status)
          Set the status of the event item.
 
Methods inherited from class fi.paatti.mobile.views.listview.ListItem
addTextRow, getItemId, setItemClickLogic, setItemIcon, setOpenButtonEnabled, setOpenButtonIcon, setOpenButtonText
 
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout
addComponent, addComponent, addComponentAsFirst, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, paintContent, removeComponent, removeListener, replaceComponent, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacing
 
Methods inherited from class com.vaadin.ui.AbstractLayout
changeVariables, fireClick, getMargin, setMargin, setMargin, setMargin
 
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setWidth, setWidth, setWidthUnits, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.ComponentContainer
addListener, addListener, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.terminal.Paintable
addListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugId
 
Methods inherited from interface com.vaadin.terminal.VariableOwner
isImmediate
 
Methods inherited from interface com.vaadin.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidth, setWidthUnits
 

Field Detail

STATUS_AVAILABLE

public static final int STATUS_AVAILABLE
The value that is used to show that the event item is available (it can be started).

See Also:
Constant Field Values

STATUS_UNAVAILABLE

public static final int STATUS_UNAVAILABLE
The value that is used to show that the event item is not available (it cannot be started yet).

See Also:
Constant Field Values

STATUS_UNFINISHED

public static final int STATUS_UNFINISHED
The value that is used to show that the event item is available and is unfinished (it is over it´s due time).

See Also:
Constant Field Values

STATUS_VOLUNTARY

public static final int STATUS_VOLUNTARY
The value that is used to show that the event item is a voluntary event.

See Also:
Constant Field Values
Constructor Detail

EventListItem

public EventListItem(com.vaadin.data.Item item,
                     String idColumn,
                     String... textRows)
Constructor.

Parameters:
item - The item that has the event values.
idColumn - The id property in the event item.
textRows - The properties that will be used in list items text.
Method Detail

setStatus

public void setStatus(int status)
Set the status of the event item.
  1. AVAILABLE (the event can be started)
  2. UNAVAILABLE (the event is not yet ready)
  3. UNFINISHED (the event shoud have been done allready)
  4. VOLUNTARY (the event has no time limit and can be done multiple times)

Parameters:
status - The new status for the event.

getStatus

public int getStatus()
Get the status of the event item.
  1. AVAILABLE (the event can be started)
  2. UNAVAILABLE (the event is not yet ready)
  3. UNFINISHED (the event shoud have been done allready)
  4. VOLUNTARY (the event has no time limit and can be done multiple times)

Returns:
The status of the event.


Copyright © 2012. All Rights Reserved.