public class Strings extends Object
Copyright (c) 2011-2014 Bit Stadium GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Modifier and Type | Field and Description |
---|---|
static int |
CRASH_DIALOG_MESSAGE_ID
Resource ID for the message of the dialog when a new crash was found.
|
static int |
CRASH_DIALOG_NEGATIVE_BUTTON_ID
Resource ID for the negative button label of the dialog when a new crash was found.
|
static int |
CRASH_DIALOG_NEUTRAL_BUTTON_ID
Resource ID for the neutral button label of the dialog when a new crash was found.
|
static int |
CRASH_DIALOG_POSITIVE_BUTTON_ID
Resource ID for the positive button label of the dialog when a new crash was found.
|
static int |
CRASH_DIALOG_TITLE_ID
Resource ID for the title of the dialog when a new crash was found.
|
static int |
DIALOG_ERROR_MESSAGE_ID
Resource ID for the message of an error dialog.
|
static int |
DIALOG_ERROR_TITLE_ID
Resource ID for the title of an error dialog.
|
static int |
DIALOG_NEGATIVE_BUTTON_ID
Resource ID for the negative button of generic dialogs.
|
static int |
DIALOG_POSITIVE_BUTTON_ID
Resource ID for the positive button of generic dialogs.
|
static int |
DOWNLOAD_FAILED_DIALOG_MESSAGE_ID
Resource ID for the message of the dialog when the apk download failed.
|
static int |
DOWNLOAD_FAILED_DIALOG_NEGATIVE_BUTTON_ID
Resource ID for the label on the negative button of the dialog when the apk download failed.
|
static int |
DOWNLOAD_FAILED_DIALOG_POSITIVE_BUTTON_ID
Resource ID for the label on the positive button of the dialog when the apk download failed.
|
static int |
DOWNLOAD_FAILED_DIALOG_TITLE_ID
Resource ID for the title of the dialog when the apk download failed.
|
static int |
ERROR_NO_NETWORK_MESSAGE_ID
Resource ID for the generic no network error message.
|
static int |
EXPIRY_INFO_TEXT_ID
Resource ID for the text of the expiry info view.
|
static int |
EXPIRY_INFO_TITLE_ID
Resource ID for the title of the expiry info view.
|
static int |
FEEDBACK_ATTACH_FILE_ID
Resource ID for the button to attach a file to the feedback.
|
static int |
FEEDBACK_ATTACH_PICTURE_ID
Resource ID for the button to attach a picture to the feedback.
|
static int |
FEEDBACK_ATTACHMENT_BUTTON_TEXT_ID
Resource ID for the FeedbackView attachment button text.
|
static int |
FEEDBACK_EMAIL_INPUT_HINT_ID
Resource ID for the FeedbackView email input hint text.
|
static int |
FEEDBACK_FAILED_TEXT_ID
Resource ID for the text of the Feedback Failed info view.
|
static int |
FEEDBACK_FAILED_TITLE_ID
Resource ID for the title of the Feedback Failed info view.
|
static int |
FEEDBACK_GENERIC_ERROR_ID
Resource ID for the message when a generic error has occurred.
|
static int |
FEEDBACK_LAST_UPDATED_TEXT_ID
Resource ID for the FeedbackView last updated text.
|
static int |
FEEDBACK_MAX_ATTACHMENTS_ALLOWED
Resource ID for the warning toast of the maximum number of attachments allowed per feedback.
|
static int |
FEEDBACK_MESSAGE_INPUT_HINT_ID
Resource ID for the FeedbackView message input hint text.
|
static int |
FEEDBACK_NAME_INPUT_HINT_ID
Resource ID for the FeedbackView name input hint text.
|
static int |
FEEDBACK_REFRESH_BUTTON_TEXT_ID
Resource ID for the FeedbackView refresh button text.
|
static int |
FEEDBACK_RESPONSE_BUTTON_TEXT_ID
Resource ID for the FeedbackView response button text.
|
static int |
FEEDBACK_SELECT_FILE_ID
Resource ID for the chooser dialog to select an attachment file.
|
static int |
FEEDBACK_SELECT_PICTURE_ID
Resource ID for the chooser dialog to select an attachment picture.
|
static int |
FEEDBACK_SEND_BUTTON_TEXT_ID
Resource ID for the FeedbackView send button text.
|
static int |
FEEDBACK_SEND_GENERIC_ERROR_ID
Resource ID for the message when feedback could not be sent (generic).
|
static int |
FEEDBACK_SEND_NETWORK_ERROR_ID
Resource ID for the message when feedback could not be sent (network error).
|
static int |
FEEDBACK_SUBJECT_INPUT_HINT_ID
Resource ID for the FeedbackView subject input hint text.
|
static int |
FEEDBACK_TITLE_ID
Resource ID for the title of the FeedbackActivity.
|
static int |
FEEDBACK_VALIDATE_EMAIL_EMPTY_ID
Resource ID for the message when the email field is not filled out.
|
static int |
FEEDBACK_VALIDATE_EMAIL_ERROR_ID
Resource ID for the message when the entered email is invalid.
|
static int |
FEEDBACK_VALIDATE_NAME_ERROR_ID
Resource ID for the message when the name field is not filled out.
|
static int |
FEEDBACK_VALIDATE_SUBJECT_ERROR_ID
Resource ID for the message when the subject field is not filled out.
|
static int |
FEEDBACK_VALIDATE_TEXT_ERROR_ID
Resource ID for the message when the text field is not filled out.
|
static int |
LOGIN_EMAIL_INPUT_HINT_ID
Resource ID for the LoginView email input hint text.
|
static int |
LOGIN_HEADLINE_TEXT_ID
Resource ID for the LoginView headline.
|
static int |
LOGIN_LOGIN_BUTTON_TEXT_ID
Resource ID for the LoginView login button text.
|
static int |
LOGIN_MISSING_CREDENTIALS_TOAST_ID
Resource ID for the LoginView missing credentials toast.
|
static int |
LOGIN_PASSWORD_INPUT_HINT_ID
Resource ID for the LoginView password input hint text.
|
static int |
PAINT_DIALOG_MESSAGE_ID
Resource ID for the dialog message when activity is exited with changes.
|
static int |
PAINT_DIALOG_NEGATIVE_BUTTON_ID
Resource ID for the negative button label of the dialog when activity is exited with changes.
|
static int |
PAINT_DIALOG_POSITIVE_BUTTON_ID
Resource ID for the positive button label of the dialog when activity is exited with changes.
|
static int |
PAINT_INDICATOR_TOAST_ID
Resource ID for the PaintActivity indicator toast.
|
static int |
PAINT_MENU_CLEAR_ID
Resource ID for the PaintActivity menu clear button.
|
static int |
PAINT_MENU_SAVE_ID
Resource ID for the PaintActivity menu save button.
|
static int |
PAINT_MENU_UNDO_ID
Resource ID for the PaintActivity menu undo button.
|
static int |
PERMISSION_DIALOG_NEGATIVE_BUTTON_ID
Resource ID for the cancel button in the dialog.
|
static int |
PERMISSION_DIALOG_POSITIVE_BUTTON_ID
Resource ID for the retry button in the dialog.
|
static int |
PERMISSION_UPDATE_MESSAGE_ID
Resource ID for the message of the dialog explaining why permission is necessary
|
static int |
PERMISSION_UPDATE_TITLE_ID
Resource ID for the title of the dialog explaining why permission is necessary.
|
static int |
UPDATE_DIALOG_MESSAGE_ID
Resource ID for the message of the dialog when a new update was found.
|
static int |
UPDATE_DIALOG_NEGATIVE_BUTTON_ID
Resource ID for the label on the negative button of the dialog when a new update was found.
|
static int |
UPDATE_DIALOG_POSITIVE_BUTTON_ID
Resource ID for the label on the positive button of the dialog when a new update was found.
|
static int |
UPDATE_DIALOG_TITLE_ID
Resource ID for the title of the dialog when a new update was found.
|
static int |
UPDATE_MANDATORY_TOAST_ID
Resource ID for the text of the toast when an update is mandatory.
|
Constructor and Description |
---|
Strings() |
Modifier and Type | Method and Description |
---|---|
static String |
get(int resourceID)
Returns the default string for the given resource ID.
|
static String |
get(StringListener listener,
int resourceID)
Returns a string for the given resource ID.
|
static void |
set(int resourceID,
String string)
Sets the default string for the given resource ID.
|
public static final int CRASH_DIALOG_TITLE_ID
public static final int CRASH_DIALOG_MESSAGE_ID
public static final int CRASH_DIALOG_NEGATIVE_BUTTON_ID
public static final int CRASH_DIALOG_NEUTRAL_BUTTON_ID
public static final int CRASH_DIALOG_POSITIVE_BUTTON_ID
public static final int DOWNLOAD_FAILED_DIALOG_TITLE_ID
public static final int DOWNLOAD_FAILED_DIALOG_MESSAGE_ID
public static final int DOWNLOAD_FAILED_DIALOG_NEGATIVE_BUTTON_ID
public static final int DOWNLOAD_FAILED_DIALOG_POSITIVE_BUTTON_ID
public static final int UPDATE_MANDATORY_TOAST_ID
public static final int UPDATE_DIALOG_TITLE_ID
public static final int UPDATE_DIALOG_MESSAGE_ID
public static final int UPDATE_DIALOG_NEGATIVE_BUTTON_ID
public static final int UPDATE_DIALOG_POSITIVE_BUTTON_ID
public static final int EXPIRY_INFO_TITLE_ID
public static final int EXPIRY_INFO_TEXT_ID
public static final int FEEDBACK_FAILED_TITLE_ID
public static final int FEEDBACK_FAILED_TEXT_ID
public static final int FEEDBACK_NAME_INPUT_HINT_ID
public static final int FEEDBACK_EMAIL_INPUT_HINT_ID
public static final int FEEDBACK_SUBJECT_INPUT_HINT_ID
public static final int FEEDBACK_MESSAGE_INPUT_HINT_ID
public static final int FEEDBACK_LAST_UPDATED_TEXT_ID
public static final int FEEDBACK_ATTACHMENT_BUTTON_TEXT_ID
public static final int FEEDBACK_SEND_BUTTON_TEXT_ID
public static final int FEEDBACK_RESPONSE_BUTTON_TEXT_ID
public static final int FEEDBACK_REFRESH_BUTTON_TEXT_ID
public static final int FEEDBACK_TITLE_ID
public static final int FEEDBACK_SEND_GENERIC_ERROR_ID
public static final int FEEDBACK_SEND_NETWORK_ERROR_ID
public static final int FEEDBACK_VALIDATE_SUBJECT_ERROR_ID
public static final int FEEDBACK_VALIDATE_EMAIL_ERROR_ID
public static final int FEEDBACK_GENERIC_ERROR_ID
public static final int FEEDBACK_VALIDATE_NAME_ERROR_ID
public static final int FEEDBACK_VALIDATE_EMAIL_EMPTY_ID
public static final int FEEDBACK_VALIDATE_TEXT_ERROR_ID
public static final int FEEDBACK_ATTACH_FILE_ID
public static final int FEEDBACK_ATTACH_PICTURE_ID
public static final int FEEDBACK_SELECT_FILE_ID
public static final int FEEDBACK_SELECT_PICTURE_ID
public static final int FEEDBACK_MAX_ATTACHMENTS_ALLOWED
public static final int LOGIN_HEADLINE_TEXT_ID
public static final int LOGIN_MISSING_CREDENTIALS_TOAST_ID
public static final int LOGIN_EMAIL_INPUT_HINT_ID
public static final int LOGIN_PASSWORD_INPUT_HINT_ID
public static final int LOGIN_LOGIN_BUTTON_TEXT_ID
public static final int PAINT_INDICATOR_TOAST_ID
public static final int PAINT_MENU_SAVE_ID
public static final int PAINT_MENU_UNDO_ID
public static final int PAINT_MENU_CLEAR_ID
public static final int PAINT_DIALOG_MESSAGE_ID
public static final int PAINT_DIALOG_NEGATIVE_BUTTON_ID
public static final int PAINT_DIALOG_POSITIVE_BUTTON_ID
public static final int PERMISSION_UPDATE_TITLE_ID
public static final int PERMISSION_UPDATE_MESSAGE_ID
public static final int PERMISSION_DIALOG_NEGATIVE_BUTTON_ID
public static final int PERMISSION_DIALOG_POSITIVE_BUTTON_ID
public static final int DIALOG_POSITIVE_BUTTON_ID
public static final int DIALOG_NEGATIVE_BUTTON_ID
public static final int DIALOG_ERROR_TITLE_ID
public static final int DIALOG_ERROR_MESSAGE_ID
public static final int ERROR_NO_NETWORK_MESSAGE_ID
public static String get(int resourceID)
resourceID
- The ID of the string resource.public static void set(int resourceID, String string)
resourceID
- The ID of the string resource.string
- The new default string.public static String get(StringListener listener, int resourceID)
listener
- An instance of StringListener.resourceID
- The ID of the string resource.Copyright © 2015. All Rights Reserved.