Class RSSReader

All Implemented Interfaces:
Animation, Editable, ActionSource, StyleListener

public class RSSReader extends List
A List implementing an RSS reader that automatically populates itself with content from the RSS chanel. When clicking an article it displays the HTML content of said article in a new Form.
  • Constructor Details

    • RSSReader

      public RSSReader()
      Creates an rss reader instance
  • Method Details

    • setMoreDescription

      public static void setMoreDescription(String d)

      Set the description for the "more" request

      Parameters
      • d: the description
    • setMoreTitle

      public static void setMoreTitle(String t)

      Set the title for the "more" request

      Parameters
      • t: new title
    • sendRequest

      public void sendRequest()
      Send the request to the server, will only work once. This is called implicitly when the list is initialized
    • initComponent

      protected void initComponent()
      Allows subclasses to bind functionality that relies on fully initialized and "ready for action" component state
      Overrides:
      initComponent in class Component
    • getURL

      public String getURL()

      The URL of the RSS stream

      Returns

      The URL of the RSS stream

    • setURL

      public void setURL(String url)

      The URL of the RSS stream

      Parameters
      • url: The URL of the RSS stream
    • getIconPlaceholder

      public Image getIconPlaceholder()
      Returns

      the iconPlaceholder

    • setIconPlaceholder

      public void setIconPlaceholder(Image iconPlaceholder)
      Parameters
      • iconPlaceholder: the iconPlaceholder to set
    • showRSSEntry

      protected void showRSSEntry(Hashtable h)

      Shows a form containing the RSS entry

      Parameters
      • h: the parsed entry
    • getLimit

      public int getLimit()

      Places a limit on the number of RSS entries requested from the server

      Returns

      the limit

    • setLimit

      public void setLimit(int limit)

      Places a limit on the number of RSS entries requested from the server

      Parameters
      • limit: the limit to set
    • getPropertyNames

      public String[] getPropertyNames()

      A component may expose mutable property names for a UI designer to manipulate, this API is designed for usage internally by the GUI builder code

      Returns

      the property names allowing mutation

      Overrides:
      getPropertyNames in class Component
    • getPropertyTypes

      public Class[] getPropertyTypes()

      Matches the property names method (see that method for further details).

      Returns

      the types of the properties

      Overrides:
      getPropertyTypes in class Component
    • getPropertyValue

      public Object getPropertyValue(String name)

      Returns the current value of the property name, this method is used by the GUI builder

      Parameters
      • name: the name of the property
      Returns

      the value of said property

      Overrides:
      getPropertyValue in class Component
    • setPropertyValue

      public String setPropertyValue(String name, Object value)

      Sets a new value to the given property, returns an error message if failed and null if successful. Notice that some builtin properties such as "$designMode" might be sent to components to indicate application state.

      Parameters
      • name: the name of the property

      • value: new value for the property

      Returns

      error message or null

      Overrides:
      setPropertyValue in class Component
    • isBlockList

      public boolean isBlockList()
      Returns

      the blockList

    • setBlockList

      public void setBlockList(boolean blockList)
      Parameters
      • blockList: the blockList to set
    • getProgressTitle

      public String getProgressTitle()
      Returns

      the progressTitle

    • setProgressTitle

      public void setProgressTitle(String progressTitle)
      Parameters
      • progressTitle: the progressTitle to set
    • getTargetContainer

      public Container getTargetContainer()

      The form/container to which the RSS will navigate when clicking a RSS entry

      Returns

      the targetContainer

    • setTargetContainer

      public void setTargetContainer(Container targetContainer)

      The form/container to which the RSS will navigate when clicking a RSS entry

      Parameters
      • targetContainer: the targetContainer to set
    • isAddBackToTaget

      public boolean isAddBackToTaget()

      Indicates whether a back command should be added implicitly to the target container

      Returns

      the addBackToTaget

    • setAddBackToTaget

      public void setAddBackToTaget(boolean addBackToTaget)

      Indicates whether a back command should be added implicitly to the target container

      Parameters
      • addBackToTaget: the addBackToTaget to set