public class RSSReader
ImplementsActionSource, Animation, Editable, StyleListener
Constructors
public RSSReader() | Creates an rss reader instance |
Methods
public static void setMoreDescription(String d) | Set the description for the “more” request |
public static void setMoreTitle(String t) | Set the title for the “more” request |
public void sendRequest() | Send the request to the server, will only work once. |
protected void initComponent() | Allows subclasses to bind functionality that relies on fully initialized and “ready for action” component state |
public String getURL() | The URL of the RSS stream |
public void setURL(String url) | The URL of the RSS stream |
public Image getIconPlaceholder() | |
public void setIconPlaceholder(Image iconPlaceholder) | |
protected void showRSSEntry(Hashtable h) | Shows a form containing the RSS entry |
public int getLimit() | Places a limit on the number of RSS entries requested from the server |
public void setLimit(int limit) | Places a limit on the number of RSS entries requested from the server |
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 |
public Class[] getPropertyTypes() | Matches the property names method (see that method for further details). |
public Object getPropertyValue(String name) | Returns the current value of the property name, this method is used by the GUI builder |
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. |
public boolean isBlockList() | |
public void setBlockList(boolean blockList) | |
public String getProgressTitle() | |
public void setProgressTitle(String progressTitle) | |
public Container getTargetContainer() | The form/container to which the RSS will navigate when clicking a RSS entry |
public void setTargetContainer(Container targetContainer) | The form/container to which the RSS will navigate when clicking a RSS entry |
public boolean isAddBackToTaget() | Indicates whether a back command should be added implicitly to the target container |
public void setAddBackToTaget(boolean addBackToTaget) | Indicates whether a back command should be added implicitly to the target container |
Inherited fields
From List
FIXED_NONE, FIXED_NONE_CYCLIC, FIXED_NONE_ONE_ELEMENT_MARGIN_FROM_EDGE, FIXED_LEAD, FIXED_TRAIL, FIXED_CENTER, VERTICAL, HORIZONTAL
From Component
DEFAULT_CURSOR, CROSSHAIR_CURSOR, TEXT_CURSOR, WAIT_CURSOR, SW_RESIZE_CURSOR, SE_RESIZE_CURSOR, NW_RESIZE_CURSOR, NE_RESIZE_CURSOR, N_RESIZE_CURSOR, S_RESIZE_CURSOR, W_RESIZE_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, DRAG_REGION_NOT_DRAGGABLE, DRAG_REGION_POSSIBLE_DRAG_X, DRAG_REGION_POSSIBLE_DRAG_Y, DRAG_REGION_POSSIBLE_DRAG_XY, DRAG_REGION_LIKELY_DRAG_X, DRAG_REGION_LIKELY_DRAG_Y, DRAG_REGION_LIKELY_DRAG_XY, DRAG_REGION_IMMEDIATELY_DRAG_X, DRAG_REGION_IMMEDIATELY_DRAG_Y, DRAG_REGION_IMMEDIATELY_DRAG_XY, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_CENTER_OFFSET, BRB_OTHER, CENTER, TOP, LEFT, BOTTOM, RIGHT, BASELINE
Inherited methods
From List
isDefaultIgnoreFocusComponentWhenUnfocused, setDefaultIgnoreFocusComponentWhenUnfocused, isDefaultFireOnClick, setDefaultFireOnClick, initLaf, laidOut, modelChanged, listSelectionChanged, getSideGap, isScrollableY, isScrollableX, getMaxElementHeight, setMaxElementHeight, getMinElementHeight, setMinElementHeight, size, getAccessibilityItemBounds, getAccessibilityItemText, getAccessibilityVisibleItemIndices, getCurrentSelected, getSelectedIndex, setSelectedIndex, getVisibleBounds, getDragRegionStatus, setSelectedIndex, getSelectedItem, setSelectedItem, getModel, setModel, setShouldCalcPreferredSize, isNumericKeyActions, setNumericKeyActions, isCommandList, setCommandList, isIgnoreFocusComponentWhenUnfocused, setIgnoreFocusComponentWhenUnfocused, isMutableRendererBackgrounds, setMutableRendererBackgrounds, getListSizeCalculationSampleCount, setListSizeCalculationSampleCount, isLongPointerPressActionEnabled, setLongPointerPressActionEnabled, setListCellRenderer, getRenderer, setRenderer, getOrientation, setOrientation, refreshTheme, scrollRectToVisible, setHandlesInput, fireClicked, isSelectableInteraction, keyReleased, keyPressed, paint, shouldRenderSelection, addSelectionListener, removeSelectionListener, addActionListener, getActionListeners, getListeners, removeActionListener, fireActionEvent, fireActionEvent, setInputOnFocus, setPaintFocusBehindList, getItemGap, setItemGap, getRenderingPrototype, setRenderingPrototype, longPointerPress, pointerPressed, pointerHover, pointerDragged, getSelectedRect, setFireOnClick, pointerHoverReleased, pointerReleased, calcPreferredSize, addItem, getFixedSelection, setFixedSelection, animate, isTactileTouch, setScrollToSelected, getGridPosY, getGridPosX, paramString, getHint, setHint, getHintIcon, setHintIcon, setHint
From Component
setSameSize, isSetCursorSupported, parsePreferredSize, getDefaultDragTransparency, setDefaultDragTransparency, getEditingDelegate, setEditingDelegate, getCursor, setCursor, showNativeOverlay, hideNativeOverlay, updateNativeOverlay, getNativeOverlay, getAllStyles, getSameWidth, setSameWidth, getSameHeight, setSameHeight, getUIManager, getX, setX, getOuterX, getInnerX, getY, setY, getOuterY, getInnerY, isVisible, setVisible, getClientProperty, stripMarginAndPadding, clearClientProperties, putClientProperty, getDirtyRegion, setDirtyRegion, isOpaque, setOpaque, getWidth, setWidth, getOuterWidth, getInnerWidth, getHeight, setHeight, getOuterHeight, getInnerHeight, isDragRegion, getBaseline, getBaselineResizeBehavior, getPreferredSizeStr, setPreferredSizeStr, getPreferredSize, setPreferredSize, getScrollDimension, calcScrollSize, setScrollSize, getPreferredW, setPreferredW, getPreferredH, setPreferredH, getOuterPreferredH, getInnerPreferredH, getOuterPreferredW, getInnerPreferredW, setSize, getUIID, setUIID, setUIIDFinal, setUIID, getInlineAllStyles, setInlineAllStyles, getInlineSelectedStyles, setInlineSelectedStyles, getInlineUnselectedStyles, setInlineUnselectedStyles, getInlineDisabledStyles, setInlineDisabledStyles, getInlinePressedStyles, setInlinePressedStyles, remove, getParent, getOwner, setOwner, isOwnedBy, containsOrOwns, addFocusListener, removeFocusListener, addScrollListener, removeScrollListener, getSelectCommandText, setSelectCommandText, getLabelForComponent, setLabelForComponent, focusGained, focusLost, paintBackgrounds, paintShadows, getAbsoluteX, getAbsoluteY, isInClippingRegion, paintIntersectingComponentsAbove, paintScrollbars, paintScrollbarX, getScrollOpacity, paintScrollbarY, paintComponent, paintComponent, getBorder, getScrollable, paintBackground, isScrollable, getScrollX, setScrollX, getScrollY, setScrollY, onScrollX, onScrollY, getDraggedx, getDraggedy, getBottomGap, contains, visibleBoundsContains, hasFixedPreferredSize, getBounds, getBounds, getVisibleBounds, isFocusable, setFocusable, onSetFocusable, resetFocusable, getTabIndex, setTabIndex, getPreferredTabIndex, setPreferredTabIndex, isTraversable, setTraversable, handlesInput, consumesRawTextInput, hasFocus, setFocus, getComponentForm, getTopLevelContainer, repaint, repaint, longKeyPress, keyRepeated, registerForAnimation, deregisterFromAnimation, getAnimationManager, getScrollAnimationSpeed, setScrollAnimationSpeed, isBlockLead, setBlockLead, isIgnorePointerEvents, setIgnorePointerEvents, isRippleEffect, setRippleEffect, getInlineStylesTheme, setInlineStylesTheme, shouldRenderComponentSelection, isHideInLandscape, setHideInLandscape, createStyleAnimation, isSmoothScrolling, setSmoothScrolling, stopScrollMomentum, pointerHoverPressed, pinch, pinchReleased, pinch, rotation, isPinchBlocksDragAndDrop, setPinchBlocksDragAndDrop, pointerDragged, getDragImage, getDragTransparency, setDragTransparency, toImage, dragInitiated, drawDraggedImage, draggingOver, dragEnter, dragExit, drop, addPullToRefresh, setPullToRefresh, respondsToPointerEvents, isStickyDrag, pointerPressed, isDragAndDropOperation, pointerReleased, setVerticalScrollBounds, setHorizontalScrollBounds, isVScrollThumbGrabbed, isHScrollThumbGrabbed, isVScrollThumbHover, isHScrollThumbHover, isTensileDragEnabled, setTensileDragEnabled, getTextSelectionSupport, addDropListener, removeDropListener, addDragOverListener, removeDragOverListener, isNativeDragSource, setNativeDragSource, getNativeDragOperation, setNativeDragOperation, createNativeDragOperation, isNativeDropTarget, setNativeDropTarget, getAcceptedDropMimeTypes, setAcceptedDropMimeTypes, getAcceptedDropActions, setAcceptedDropActions, canAcceptNativeDrop, nativeDragEnter, nativeDragOver, nativeDragExit, nativeDrop, addNativeDropListener, removeNativeDropListener, addNativeDragOverListener, removeNativeDragOverListener, dragFinished, addDragFinishedListener, addStateChangeListener, removeStateChangeListener, addPointerPressedListener, addLongPressListener, addContextMenuListener, removeContextMenuListener, addMouseWheelListener, removeMouseWheelListener, addStylusListener, removeStylusListener, mouseWheel, paintRippleOverlay, removePointerPressedListener, removeLongPressListener, removeDragFinishedListener, addPointerReleasedListener, removePointerReleasedListener, addPointerDraggedListener, removePointerDraggedListener, getDragSpeed, getStyle, getPressedStyle, setPressedStyle, initUnselectedStyle, initPressedStyle, initDisabledStyle, initSelectedStyle, getUnselectedStyle, setUnselectedStyle, getSelectedStyle, setSelectedStyle, getDisabledStyle, setDisabledStyle, installDefaultPainter, requestFocus, toString, refreshTheme, refreshTheme, isDragActivated, scrollRectToVisible, scrollRectToVisible, paintBorder, paintBorderBackground, isCellRenderer, setCellRenderer, isScrollVisible, setScrollVisible, setIsScrollVisible, startEditingAsync, stopEditing, isEditing, isEditable, deinitialize, isInitialized, setInitialized, styleChanged, getNextFocusDown, setNextFocusDown, getNextFocusUp, setNextFocusUp, getNextFocusLeft, setNextFocusLeft, getNextFocusRight, setNextFocusRight, isEnabled, setEnabled, getName, setName, initCustomStyle, deinitializeCustomStyle, isRTL, setRTL, isTactileTouch, setTactileTouch, getPropertyTypeNames, paintLockRelease, paintLock, isSnapToGrid, setSnapToGrid, shouldBlockSideSwipe, shouldBlockSideSwipeLeft, shouldBlockSideSwipeRight, blocksSideSwipe, isFlatten, setFlatten, getTensileLength, setTensileLength, isGrabsPointerEvents, setGrabsPointerEvents, getScrollOpacityChangeSpeed, setScrollOpacityChangeSpeed, growShrink, isAlwaysTensile, setAlwaysTensile, isDraggable, setDraggable, isDropTarget, setDropTarget, isChildOf, isHideInPortrait, setHideInPortrait, cancelRepaints, getBindablePropertyNames, getBindablePropertyTypes, bindProperty, unbindProperty, getBoundPropertyValue, setBoundPropertyValue, getCloudBoundProperty, setCloudBoundProperty, getCloudDestinationProperty, setCloudDestinationProperty, getComponentState, setComponentState, setHidden, isHidden, setHidden, isHidden, announceForAccessibility, getAccessibilityText, setAccessibilityText, getSemantics, getAccessibilityNode, accessibilityChanged, accessibilityChanged, getTooltip, setTooltip
Constructor details
RSSReader
public RSSReader()Method details
setMoreDescription
public static void setMoreDescription(String d)Parameters
dString- the description
setMoreTitle
public static void setMoreTitle(String t)Parameters
tString- new title
sendRequest
public void sendRequest()initComponent
protected void initComponent()getURL
public String getURL()Returns
setURL
public void setURL(String url)Parameters
urlString- The URL of the RSS stream
getIconPlaceholder
public Image getIconPlaceholder()Returns
setIconPlaceholder
public void setIconPlaceholder(Image iconPlaceholder)Parameters
iconPlaceholderImage- the iconPlaceholder to set
showRSSEntry
protected void showRSSEntry(Hashtable h)Parameters
hHashtable- the parsed entry
getLimit
public int getLimit()Returns
setLimit
public void setLimit(int limit)Parameters
limitint- the limit to set
getPropertyNames
public String[] getPropertyNames()Returns
getPropertyTypes
public Class[] getPropertyTypes()Returns
getPropertyValue
public Object getPropertyValue(String name)Parameters
nameString- the name of the property
Returns
setPropertyValue
public String setPropertyValue(String name, Object value)Parameters
nameString- the name of the property
valueObject- new value for the property
Returns
isBlockList
public boolean isBlockList()Returns
setBlockList
public void setBlockList(boolean blockList)Parameters
blockListboolean- the blockList to set
getProgressTitle
public String getProgressTitle()Returns
setProgressTitle
public void setProgressTitle(String progressTitle)Parameters
progressTitleString- the progressTitle to set
getTargetContainer
public Container getTargetContainer()Returns
setTargetContainer
public void setTargetContainer(Container targetContainer)Parameters
targetContainerContainer- the targetContainer to set
isAddBackToTaget
public boolean isAddBackToTaget()Returns
setAddBackToTaget
public void setAddBackToTaget(boolean addBackToTaget)Parameters
addBackToTagetboolean- the addBackToTaget to set