danger.ui
Class FolderEditor

java.lang.Object
  extended by danger.app.Listener
      extended by danger.ui.View
          extended by danger.ui.Container
              extended by danger.ui.Window
                  extended by danger.ui.ScreenWindow
                      extended by danger.ui.FolderEditor

Deprecated. This class is under construction. The API will be improved (and possibly changed) in a future release of the OS.


public class FolderEditor
extends ScreenWindow


Field Summary
protected  Listener mListener
          Deprecated. Use setListener(danger.app.Listener) instead.
 
Fields inherited from class danger.ui.Window
mBusyPaintCount, mDefaultListener, STATE_AUTO_HIDE_IF_IDLE, STATE_DROP_ORPHANED_EVENTS, STATE_FULLSCREEN, STATE_UNUSED1
 
Fields inherited from class danger.ui.View
DEFAULT_SCROLL_FOCUS_MARGIN, FOCUS_DEFAULT, FOCUS_DOWNWARD, FOCUS_LEFTWARD, FOCUS_NONE, FOCUS_RIGHTWARD, FOCUS_UPWARD, mOriginX, mOriginY, mStyle, POSITION_ABOVE, POSITION_ALIGN_BASELINE, POSITION_ALIGN_BOTTOM, POSITION_ALIGN_HORIZONTALLY, POSITION_ALIGN_LEFT, POSITION_ALIGN_PARENT_BOTTOM, POSITION_ALIGN_PARENT_RIGHT, POSITION_ALIGN_RIGHT, POSITION_ALIGN_TOP, POSITION_ALIGN_VERTICALLY, POSITION_BELOW, POSITION_CENTER_HORIZONTALLY, POSITION_CENTER_VERTICALLY, POSITION_TO_LEFT, POSITION_TO_RIGHT, PREFER_DIRECTION_NONE, PREFER_HORIZONTAL_DIRECTION, PREFER_VERTICAL_DIRECTION, STATE_AT_AND_SPACE_PAGE, STATE_CAN_FOCUS, STATE_DEBUG_BOUNDS, STATE_ENABLED, STATE_FOCUSED, STATE_MAKE_DING, STATE_PARTIAL_FOCUS_OK, STATE_TRANSPARENT, STATE_VISIBLE, WIDTH_FILL_TO_RIGHT
 
Constructor Summary
FolderEditor(String inItemName, String inPluralName, Bitmap inIcon)
          Deprecated.  
FolderEditor(String inItemName, String inPluralName, String inNewItemName, String inEditItemName, Bitmap inIcon)
          Deprecated.  
FolderEditor(String inItemName, String inPluralName, String inNewItemName, String inEditItemName, Bitmap inIcon, Menu settingsMenu)
          Deprecated.  
 
Method Summary
 void adjustActionMenuState(Menu menu)
          Deprecated. Adjust the action menu state.
 boolean eventKeyUp(char inKey, Event event)
          Deprecated. Handle a key up event.
 boolean eventWidgetUp(int inWhichWidget, Event event)
          Deprecated. Handle a button up event.
 void hide()
          Deprecated. Mark this view hidden so that it is not displayed.
 boolean receiveEvent(Event e)
          Deprecated. Entry point for event processing.
 void setAutoCap(boolean inAutoCap)
          Deprecated.  
 void setAutoText(boolean inAutoText)
          Deprecated.  
 void setCustomList(ListView inList)
          Deprecated.  
 void setEvents(int inAddCommand, int inEditCommand, int inDeleteCommand)
          Deprecated.  
 void setHeaderView(View inHeader)
          Deprecated.  
 void setItemInputFilter(TextInputFilter inFilter)
          Deprecated.  
 void setListener(Listener inListener)
          Deprecated.  
 void setMaxCustomItems(int inNumItems)
          Deprecated.  
 void setStaticList(ListView inList)
          Deprecated.  
 
Methods inherited from class danger.ui.ScreenWindow
aboutToHideMenu, aboutToShowMenu, adjustActionMenuState, eventShortcut, eventWidgetDown, getActionMenu, getIcon, getSubTitle, getSubTitleFont, getSubTitleSequence, getTitle, getTitleFont, getTitleSequence, isActionMenuVisible, onScreenWindowActivate, onScreenWindowDeactivate, onShortcut, removeAllChildren, setFullScreen, setIcon, setSubTitle, setSubTitle, setSubTitle, setSubTitle, setTitle, setTitle, setTitle, setTitle
 
Methods inherited from class danger.ui.Window
advanceFocus, autoHide, autoHideIfIdle, autoHideIfIdle, blocksBackButton, blocksChooser, blocksFloatingControls, blocksKeyGuard, blocksVolumeButtons, centerHorizontal, centerOnScreen, centerUnderTitleBar, centerVertical, disableControlWithID, dropOrphanedEvents, enableControlWithID, forwardQueuedEvents, getApplication, getDefaultFocus, getDescendantWithID, getIDOfChild, getListener, getWindowBelow, hideActiveMenu, hideControlWithID, incrementMaxChildID, isFullScreen, isUnresponsive, onActivate, onDeactivate, onPeriodicPulse, onWindowPaint, receiveMessage, reverseFocus, setDefaultFocus, setDefaultListener, setEventArgForControlWithID, setEventForControlWithID, setMaxChildID, setMaxControlID, setPosition, setSize, setTitled, setTitleFormatDate, setTitleFormatText, setTitleFormatText, setTitleFormatText, setTitleFormatText, setTitleFormatText, shouldDropEvent, show, showControlWithID, startQueueingEvents, wantsEndButton, wantsSendButton, willPassEventToWindow
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, addChildAt, addFromContainerResource, addFromContainerResource, addFromContainerResource, addFromDialogResource, addFromDialogResource, advanceFocusInWindow, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventRawKeyDown, eventRawKeyHeld, eventRawKeyRepeat, eventRawKeyUp, eventWidgetHeld, focusedDescendantIsValid, getBottomChild, getBottomChild, getChildAt, getChildIndex, getChildWithID, getControlWithID, getFirstChild, getFirstFocusableChild, getFocusableChildInWindow, getFocusedChild, getFocusedLeaf, getInterestingRect, getLastChild, getLastFocusableChild, getLeftMostChild, getNextFocusableChild, getNextFocusableChild, getPageHeight, getPrevFocusableChild, getPrevFocusableChild, getRightMostChild, getRightMostChild, handleButtonShortcut, hideAllChildren, isDescendant, keepRectInView, loseFocus, moveChildToIndex, onChildPositionChanged, onChildSizeChanged, onChildVisibilityChanged, pageToEnd, pageToHome, paint, paintChildren, reflowChildren, removeChild, setFocusedChild, setFocusedChild, setFocusedChild, setFocusedDescendant, setFocusedDescendant, setFocusedDescendant, setFocusToFirstDescendant, setFormatDateForControlWithID, setFormatDateForTextControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setListenerForAllControls, setReflowAdjustHeight, setWindow, showAllChildren, snapHeightToChildren, snapHeightToChildren, snapToChildren, snapWidthToChildren, snapWidthToChildren, takeFocus, willFocusWithin, willFocusWithin
 
Methods inherited from class danger.ui.View
boundsIntersect, boundsIntersect, canLoseFocus, clear, clear, copyStyle, getAcceptFocus, getBackgroundColor, getBottom, getBounds, getBounds, getFocusTraversalDirection, getFocusTraversalFrom, getFocusTraversalPolicy, getFrame, getFrame, getGlobalBottom, getGlobalLeft, getGlobalRight, getGlobalTop, getHeight, getID, getInterestingRect, getLabelFont, getLabelFont, getLeft, getOrigin, getOrigin, getOriginX, getOriginY, getParent, getParentContainer, getPartialFocusOK, getRight, getScrollFocusMargin, getSibling, getState, getStyle, getStyleColor, getStyleFont, getTop, getWidth, getWindow, globalToLocal, globalToLocalH, globalToLocalV, invalidate, invalidate, invalidate, invalidateIndependentOfOrigin, invalidateIndependentOfOrigin, isEnabled, isFocusable, isFocused, isOnScreen, isTransparent, isVisible, isVisibleInHierarchy, isVisibleOnScreen, justSetVisible, localToGlobal, localToGlobal, localToGlobalH, localToGlobalV, localToWindow, moveBy, notifyWhenParentSizeChanges, notifyWhenPositionChanges, notifyWhenSizeChanges, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onEnabledStateChanged, onHide, onPositionChanged, onRemovedFromParent, onShortcut, onShortcutConsumed, onShow, onSizeChanged, onStyleChanged, onViewPositionChanged, onViewSizeChanged, playLimitSound, receiveEventInternal, resetOrigin, sendEventToWindow, setAcceptFocus, setAtAndSpacePage, setBackground, setBackgroundColor, setBottom, setDebugBounds, setDynamicPosition, setDynamicWidth, setEnabled, setFocusTraversalDirection, setFocusTraversalFrom, setFocusTraversalPolicy, setFrame, setHeight, setKeyedValue, setLabelFont, setLeft, setMakeLimitNoise, setOrigin, setOrigin, setPartialFocusOK, setPreferredDirection, setRight, setScrollFocusMargin, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, showContextMenu, styleIsDefault, swapStyleColors, windowToLocal
 
Methods inherited from class danger.app.Listener
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mListener

protected Listener mListener
Deprecated. Use setListener(danger.app.Listener) instead.
Constructor Detail

FolderEditor

public FolderEditor(String inItemName,
                    String inPluralName,
                    Bitmap inIcon)
Deprecated. 

FolderEditor

public FolderEditor(String inItemName,
                    String inPluralName,
                    String inNewItemName,
                    String inEditItemName,
                    Bitmap inIcon)
Deprecated. 

FolderEditor

public FolderEditor(String inItemName,
                    String inPluralName,
                    String inNewItemName,
                    String inEditItemName,
                    Bitmap inIcon,
                    Menu settingsMenu)
Deprecated. 
Method Detail

adjustActionMenuState

public void adjustActionMenuState(Menu menu)
Deprecated. 
Description copied from class: ScreenWindow
Adjust the action menu state.

This method is called before the action menu is displayed to the user, and also before menu item shortcuts are executed.

You will generally want to override this method in order to enable/disable, and hide/show menu items appropriately.

If you override this method, be sure to call super.adjustActionMenuState just before returning. Doing so will assure the menu gets redrawn properly, and that BaseMenu.updateTextEditItems(danger.ui.Window) will be called automatically on the action menu.

Overrides:
adjustActionMenuState in class ScreenWindow
See Also:
ScreenWindow.adjustActionMenuState()

setHeaderView

public void setHeaderView(View inHeader)
Deprecated. 

setStaticList

public void setStaticList(ListView inList)
Deprecated. 

setCustomList

public void setCustomList(ListView inList)
Deprecated. 

eventWidgetUp

public boolean eventWidgetUp(int inWhichWidget,
                             Event event)
Deprecated. 
Description copied from class: ScreenWindow
Handle a button up event. ScreenWindow handles showing the action menu here, as well as the BACk menu shortcut (if any). If you override this method, be sure to call super.eventWidgetUp.

Overrides:
eventWidgetUp in class ScreenWindow
Parameters:
inWhichWidget - the widget that went down
Returns:
whether or not the event was consumed

eventKeyUp

public boolean eventKeyUp(char inKey,
                          Event event)
Deprecated. 
Description copied from class: ScreenWindow
Handle a key up event. ScreenWindow handles shortcuts which do not require the MENU button here. If you override this method, be sure to call super.eventKeyUp.

Overrides:
eventKeyUp in class ScreenWindow
Parameters:
inKey - the character being released.

receiveEvent

public boolean receiveEvent(Event e)
Deprecated. 
Description copied from class: Listener
Entry point for event processing. This method is called from a Dispatcher when it reads an Event in its queue that is targetted at this instance. The default behavior is to do nothing and return false. Subclasses are expected to override this method to do something more useful.

Overrides:
receiveEvent in class Container
Parameters:
e - non-null; the event to process
Returns:
whether (true) or not (false) this method actually handled the event to completion

hide

public void hide()
Deprecated. 
Description copied from class: View
Mark this view hidden so that it is not displayed. If this is a Container, then none of the children will be displayed, either. However, this method does not mark the children as hidden - it simply means they won't be displayed. If this view was not already hidden, this method will call View.onHide() as the last thing it does before returning. If you wish to have special behavior when a view becomes hidden, it is recommended that you override that method. In a future revision of the library, it is likely that this method will be final.

Overrides:
hide in class Window

setListener

public void setListener(Listener inListener)
Deprecated. 

setEvents

public void setEvents(int inAddCommand,
                      int inEditCommand,
                      int inDeleteCommand)
Deprecated. 

setMaxCustomItems

public void setMaxCustomItems(int inNumItems)
Deprecated. 

setItemInputFilter

public void setItemInputFilter(TextInputFilter inFilter)
Deprecated. 

setAutoText

public final void setAutoText(boolean inAutoText)
Deprecated. 

setAutoCap

public final void setAutoCap(boolean inAutoCap)
Deprecated.