|
Foxit PDF SDK
9.1
|
Classes | |
| enum | ItemType |
| interface | OnItemClickListener |
| interface | OnItemLongPressListener |
| enum | SortType |
Public Member Functions | |
| View | getContentView () |
| TextView | getTextView () |
| void | setText (CharSequence text) |
| void | setText (int res) |
| String | getText () |
| void | setTextColor (int selectedTextColor, int disSelectedTextColor) |
| void | setTextColor (int color) |
| void | setTypeface (Typeface typeface) |
| void | setTextSize (float size) |
| void | setTextSize (int unit, float size) |
| void | setTextColorResource (int res) |
| boolean | setImageResource (int res) |
| boolean | setImageDrawable (@Nullable Drawable drawable) |
| void | setImagePadding (int l, int t, int r, int b) |
| void | setTextPadding (int l, int t, int r, int b) |
| void | setContentView (View view) |
| void | setBackgroundResource (int res) |
| void | setFilters (InputFilter[] filters) |
| void | setEllipsize (TextUtils.TruncateAt where) |
| void | setMaxWidth (int maxWidth) |
| void | setRelation (int relation) |
| void | setEnable (boolean enabled) |
| void | setClickable (boolean clickable) |
| void | setSelected (boolean selected) |
| void | setOnClickListener (View.OnClickListener l) |
| void | setOnLongClickListener (View.OnLongClickListener l) |
| void | setOnItemClickListener (OnItemClickListener l) |
| void | setOnItemLongPressListener (OnItemLongPressListener l) |
| void | setChecked (boolean checked) |
| boolean | isChecked () |
| void | setTag (int tag) |
| int | getTag () |
| void | setId (int id) |
| int | getId () |
| void | setInterval (int interval) |
| void | setDisplayStyle (ItemType type) |
| void | onItemLayout (int left, int top, int right, int bottom) |
Static Public Attributes | |
| static final int | RELATION_LEFT = 10 |
| static final int | RELATION_TOP = 11 |
| static final int | RELATION_RIGNT = 12 |
| static final int | RELATION_BELOW = 13 |
Set the properties of item in the toolbar
| View com.foxit.uiextensions.controls.toolbar.IBaseItem.getContentView | ( | ) |
Retrieve the View attached to this item, if present.
| int com.foxit.uiextensions.controls.toolbar.IBaseItem.getId | ( | ) |
Return the identifier of the item view
| int com.foxit.uiextensions.controls.toolbar.IBaseItem.getTag | ( | ) |
Return the tag of the item.
| String com.foxit.uiextensions.controls.toolbar.IBaseItem.getText | ( | ) |
Return the text that TextView is displaying.
| TextView com.foxit.uiextensions.controls.toolbar.IBaseItem.getTextView | ( | ) |
Return the TextView
| boolean com.foxit.uiextensions.controls.toolbar.IBaseItem.isChecked | ( | ) |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.onItemLayout | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom | ||
| ) |
Called from layout when this item should assign a size and position to each of its children.
| left | Left position, relative to parent |
| top | Top position, relative to parent |
| right | Right position, relative to parent |
| bottom | Bottom position, relative to parent |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setBackgroundResource | ( | int | res | ) |
Set the background to a given resource.
| res | The identifier of the resource. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setChecked | ( | boolean | checked | ) |
Changes the checked state of this item.
| checked | true to check the button, false to uncheck it |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setClickable | ( | boolean | clickable | ) |
Enables or disables click events for this item view. When a view is clickable it will change its state to "pressed" on every click. Subclasses should set the view clickable to visually react to user's clicks.
| clickable | true to make the item view clickable, false otherwise |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setContentView | ( | View | view | ) |
Set the content view attached to this item
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setDisplayStyle | ( | ItemType | type | ) |
Set the display style of this item view
| type | the specified ItemType to use. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setEllipsize | ( | TextUtils.TruncateAt | where | ) |
Causes words in the text that are longer than the view's width to be ellipsized instead of broken in the middle.
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setEnable | ( | boolean | enabled | ) |
Set the enabled state of this item.
| enabled | True if this item is enabled, false otherwise. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setFilters | ( | InputFilter[] | filters | ) |
Sets the list of input filters that will be used if the buffer is Editable. Has no effect otherwise.
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setId | ( | int | id | ) |
Set the identifier for this item view
| id | a number used to identify the item view |
| boolean com.foxit.uiextensions.controls.toolbar.IBaseItem.setImageDrawable | ( | @Nullable Drawable | drawable | ) |
Sets a drawable as the content of this item.
| drawable | the Drawable to set |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setImagePadding | ( | int | l, |
| int | t, | ||
| int | r, | ||
| int | b | ||
| ) |
Sets the padding of the image on the item
| l | the left padding in pixels |
| t | the top padding in pixels |
| r | the right padding in pixels |
| b | the bottom padding in pixels |
| boolean com.foxit.uiextensions.controls.toolbar.IBaseItem.setImageResource | ( | int | res | ) |
Sets a drawable as the content of this item.
| res | the resource identifier of the drawable |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setInterval | ( | int | interval | ) |
The interval in pixels of the item.
| interval | the interval size. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setMaxWidth | ( | int | maxWidth | ) |
Limit control maximum width
| maxWidth | Maximum width |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setOnClickListener | ( | View.OnClickListener | l | ) |
Register a callback to be invoked when this item is clicked.
| l | The callback that will run |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setOnItemClickListener | ( | OnItemClickListener | l | ) |
Register a custom callback to be invoked when this view is clicked and held.
| l | The custom callback that will run |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setOnItemLongPressListener | ( | OnItemLongPressListener | l | ) |
Register a custom callback to be invoked when this view is clicked and held.
| l | The custom callback that will run |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setOnLongClickListener | ( | View.OnLongClickListener | l | ) |
Register a callback to be invoked when this view is clicked and held.
| l | The callback that will run |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setRelation | ( | int | relation | ) |
Sets the relation between text view and image view for this item. NOTE: Only used for ItemType#Item_Text_Image.
| relation | the relation between text view and image view. Should be one of RELATION_LEFT, RELATION_TOP, RELATION_RIGNT or RELATION_BELOW |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setSelected | ( | boolean | selected | ) |
Changes the selection state of this item.
| selected | true if the item must be selected, false otherwise |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTag | ( | int | tag | ) |
Set the tag for this item.
| tag | a number used to identify the item |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setText | ( | CharSequence | text | ) |
Sets the text to be displayed.
| text | text to be displayed |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setText | ( | int | res | ) |
Sets the text to be displayed using a string resource identifier.
| res | the resource identifier of the string resource to be displayed |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextColor | ( | int | color | ) |
Sets the text color for all the states (normal, selected, focused) to be this color.
| color | A color value in the form 0xAARRGGBB. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextColor | ( | int | selectedTextColor, |
| int | disSelectedTextColor | ||
| ) |
Sets the text color for all the states (normal, selected, focused) to be this color.
| selectedTextColor | A color value in the form 0xAARRGGBB. used when text is selected |
| disSelectedTextColor | A color value in the form 0xAARRGGBB. used when text is normal state. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextColorResource | ( | int | res | ) |
Sets the text color from a color state list associated with a particular resource ID.
| res | a color state list associated with a particular resource ID |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextPadding | ( | int | l, |
| int | t, | ||
| int | r, | ||
| int | b | ||
| ) |
Sets the padding of the text on the item
| l | the left padding in pixels |
| t | the top padding in pixels |
| r | the right padding in pixels |
| b | the bottom padding in pixels |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextSize | ( | float | size | ) |
Set the default text size to the given value, interpreted as "scaled pixel" units. This size is adjusted based on the current density and user font size preference.
Note: if this TextView has the auto-size feature enabled than this function is no-op.
| size | The scaled pixel size. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextSize | ( | int | unit, |
| float | size | ||
| ) |
Set the default text size to a given unit and value. See {} for the possible dimension units. Note: if this TextView has the auto-size feature enabled than this function is no-op.
| unit | The desired dimension unit. |
| size | The desired size in the given units. |
| void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTypeface | ( | Typeface | typeface | ) |
Sets the typeface and style in which the text should be displayed.
| typeface | the Typeface to use. |
|
static |
Used for ItemType#Item_Text_Image: the text view is blow of the image. Note: This method is only used within RDK
|
static |
Used for ItemType#Item_Text_Image: the text view is on the left of the image. Note: This method is only used within RDK
|
static |
Used for ItemType#Item_Text_Image: the text view is on the right of the image. Note: This method is only used within RDK
|
static |
Used for ItemType#Item_Text_Image: the text view is on the top of the image. Note: This method is only used within RDK