Klasse LanguageHolder

java.lang.Object
eu.hobbydev.bracheus.classes.LanguageHolder

public class LanguageHolder extends Object
The `LanguageHolder` class is responsible for storing and providing language-specific keys that are used in the Instagram interface. The keys are dynamic and depend on the user's selected language, allowing the application to adjust to different languages for Instagram interactions. The class uses annotations to bind the values of each key to XML properties, which are read during the initialization process to configure the application. Each field corresponds to a specific component of the Instagram UI (e.g., login fields, direct message labels, buttons, etc.) and is localized based on the language settings. This class is essential for enabling multi-language support in the application, making it easier to interact with Instagram in various languages. It abstracts the language-specific elements, so users can easily select and use their preferred language. Example use case: - The `LanguageHolder` can be used to retrieve language-specific labels like the "Send" button text, "Username" field label, "Password" field label, etc., based on the current language configuration.
  • Konstruktordetails

    • LanguageHolder

      public LanguageHolder()
  • Methodendetails

    • getSendText

      public String getSendText()
      Retrieves the label text for the "Send" button in the selected language.
      Gibt zurück:
      the localized "Send" button text.
    • getMessagePlaceholder

      public String getMessagePlaceholder()
      Retrieves the placeholder text for the message input field in the selected language.
      Gibt zurück:
      the localized message input field placeholder.
    • getConversationWithAria

      public String getConversationWithAria()
      Retrieves the label for the "Conversation With" aria element in the selected language.
      Gibt zurück:
      the localized text for "Conversation With" aria element.
    • getAllowAllCookiesButton

      public String getAllowAllCookiesButton()
      Retrieves the text for the "Allow All Cookies" button in the selected language.
      Gibt zurück:
      the localized "Allow All Cookies" button text.
    • getDirectMessagingAria

      public String getDirectMessagingAria()
      Retrieves the aria-label for direct messaging in the selected language.
      Gibt zurück:
      the localized aria-label for direct messaging.
    • getUnreadMessage

      public String getUnreadMessage()
      Retrieves the text for unread message indicator in the selected language.
      Gibt zurück:
      the localized unread message indicator text.
    • getWrongPassword

      public String getWrongPassword()
      Retrieves the text for the "Wrong Password" message in the selected language.
      Gibt zurück:
      the localized "Wrong Password" message.
    • getLoginField

      public String getLoginField()
      Retrieves the label for the "Login" field in the selected language.
      Gibt zurück:
      the localized "Login" field text.
    • getPasswordField

      public String getPasswordField()
      Retrieves the label for the "Password" field in the selected language.
      Gibt zurück:
      the localized "Password" field text.
    • getProfileSpan

      public String getProfileSpan()
      Retrieves the text for the profile section in the selected language.
      Gibt zurück:
      the localized text for the profile section.
    • getSearchSpan

      public String getSearchSpan()
      Retrieves the text for the search section in the selected language.
      Gibt zurück:
      the localized text for the search section.
    • getUsernameField

      public String getUsernameField()
      Retrieves the label for the "Username" field in the selected language.
      Gibt zurück:
      the localized "Username" field text.
    • setSendText

      public void setSendText(String sendText)
      Sets the localized text for the "Send" button.
      Parameter:
      sendText - the localized text for the "Send" button.
    • setMessagePlaceholder

      public void setMessagePlaceholder(String messagePlaceholder)
      Sets the localized placeholder text for the message input field.
      Parameter:
      messagePlaceholder - the localized message input field placeholder.
    • setWrongPassword

      public void setWrongPassword(String wrongPassword)
      Sets the localized text for the "Wrong Password" message.
      Parameter:
      wrongPassword - the localized "Wrong Password" message.
    • setConversationWithAria

      public void setConversationWithAria(String conversationWithAria)
      Sets the localized text for the "Conversation With" aria element.
      Parameter:
      conversationWithAria - the localized text for the "Conversation With" aria element.
    • setUnreadMessage

      public void setUnreadMessage(String unreadMessage)
      Sets the localized text for the unread message indicator.
      Parameter:
      unreadMessage - the localized unread message indicator text.
    • setAllowAllCookiesButton

      public void setAllowAllCookiesButton(String allowAllCookiesButton)
      Sets the localized text for the "Allow All Cookies" button.
      Parameter:
      allowAllCookiesButton - the localized "Allow All Cookies" button text.
    • setDirectMessagingAria

      public void setDirectMessagingAria(String directMessagingAria)
      Sets the localized aria-label for direct messaging.
      Parameter:
      directMessagingAria - the localized aria-label for direct messaging.
    • setLoginField

      public void setLoginField(String loginField)
      Sets the localized label for the "Login" field.
      Parameter:
      loginField - the localized "Login" field text.
    • setPasswordField

      public void setPasswordField(String passwordField)
      Sets the localized label for the "Password" field.
      Parameter:
      passwordField - the localized "Password" field text.
    • setProfileSpan

      public void setProfileSpan(String profileSpan)
      Sets the localized text for the profile section.
      Parameter:
      profileSpan - the localized text for the profile section.
    • setSearchSpan

      public void setSearchSpan(String searchSpan)
      Sets the localized text for the search section.
      Parameter:
      searchSpan - the localized text for the search section.
    • setUsernameField

      public void setUsernameField(String usernameField)
      Sets the localized label for the "Username" field.
      Parameter:
      usernameField - the localized "Username" field text.