File Source: DummyInputField.java

         /* 
    P/P   *  Method: com.dmdirc.addons.ui_dummy.DummyInputField__static_init
          */
     1  /*
     2   * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
     3   *
     4   * Permission is hereby granted, free of charge, to any person obtaining a copy
     5   * of this software and associated documentation files (the "Software"), to deal
     6   * in the Software without restriction, including without limitation the rights
     7   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8   * copies of the Software, and to permit persons to whom the Software is
     9   * furnished to do so, subject to the following conditions:
    10   *
    11   * The above copyright notice and this permission notice shall be included in
    12   * all copies or substantial portions of the Software.
    13   *
    14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    20   * SOFTWARE.
    21   */
    22  
    23  package com.dmdirc.addons.ui_dummy;
    24  
    25  import com.dmdirc.ui.interfaces.InputField;
    26  
    27  import java.awt.event.ActionListener;
    28  import java.awt.event.KeyListener;
    29  
    30  /**
    31   * Dummy input field.
    32   */
         /* 
    P/P   *  Method: void com.dmdirc.addons.ui_dummy.DummyInputField()
          */
    33  public class DummyInputField implements InputField {
    34  
    35      /** {@inheritDoc} */
    36      @Override
    37      public void addActionListener(final ActionListener listener) {
    38          // Do nothing
             /* 
    P/P       *  Method: void addActionListener(ActionListener)
              */
    39      }
    40  
    41      /** {@inheritDoc} */
    42      @Override
    43      public void addKeyListener(final KeyListener listener) {
    44          // Do nothing
             /* 
    P/P       *  Method: void addKeyListener(KeyListener)
              */
    45      }
    46  
    47      /** {@inheritDoc} */
    48      @Override
    49      public void removeActionListener(final ActionListener listener) {
                 /* 
    P/P           *  Method: void removeActionListener(ActionListener)
                  *    removeActionListener fails for all possible inputs
                  */
    50          throw new UnsupportedOperationException("Not supported yet.");
    51      }
    52  
    53      /** {@inheritDoc} */
    54      @Override
    55      public void removeKeyListener(final KeyListener listener) {
    56          // Do nothing
             /* 
    P/P       *  Method: void removeKeyListener(KeyListener)
              */
    57      }
    58  
    59      /** {@inheritDoc} */
    60      @Override
    61      public String getSelectedText() {
                 /* 
    P/P           *  Method: String getSelectedText()
                  *    getSelectedText fails for all possible inputs
                  */
    62          throw new UnsupportedOperationException("Not supported yet.");
    63      }
    64  
    65      /** {@inheritDoc} */
    66      @Override
    67      public int getSelectionEnd() {
                 /* 
    P/P           *  Method: int getSelectionEnd()
                  *    getSelectionEnd fails for all possible inputs
                  */
    68          throw new UnsupportedOperationException("Not supported yet.");
    69      }
    70  
    71      /** {@inheritDoc} */
    72      @Override
    73      public int getSelectionStart() {
                 /* 
    P/P           *  Method: int getSelectionStart()
                  *    getSelectionStart fails for all possible inputs
                  */
    74          throw new UnsupportedOperationException("Not supported yet.");
    75      }
    76  
    77      /** {@inheritDoc} */
    78      @Override
    79      public String getText() {
                 /* 
    P/P           *  Method: String getText()
                  *    getText fails for all possible inputs
                  */
    80          throw new UnsupportedOperationException("Not supported yet.");
    81      }
    82  
    83      /** {@inheritDoc} */
    84      @Override
    85      public void setText(String text) {
                 /* 
    P/P           *  Method: void setText(String)
                  *    setText fails for all possible inputs
                  */
    86          throw new UnsupportedOperationException("Not supported yet.");
    87      }
    88  
    89      /** {@inheritDoc} */
    90      @Override
    91      public int getCaretPosition() {
                 /* 
    P/P           *  Method: int getCaretPosition()
                  *    getCaretPosition fails for all possible inputs
                  */
    92          throw new UnsupportedOperationException("Not supported yet.");
    93      }
    94  
    95      /** {@inheritDoc} */
    96      @Override
    97      public void setCaretPosition(int position) {
                 /* 
    P/P           *  Method: void setCaretPosition(int)
                  *    setCaretPosition fails for all possible inputs
                  */
    98          throw new UnsupportedOperationException("Not supported yet.");
    99      }
   100  
   101      /** {@inheritDoc} */
   102      @Override
   103      public void showColourPicker(boolean irc, boolean hex) {
                 /* 
    P/P           *  Method: void showColourPicker(bool, bool)
                  *    showColourPicker fails for all possible inputs
                  */
   104          throw new UnsupportedOperationException("Not supported yet.");
   105      }
   106  
   107      /** {@inheritDoc} */
   108      @Override
   109      public void hideColourPicker() {
                 /* 
    P/P           *  Method: void hideColourPicker()
                  *    hideColourPicker fails for all possible inputs
                  */
   110          throw new UnsupportedOperationException("Not supported yet.");
   111      }
   112  
   113      /** {@inheritDoc} */
   114      @Override
   115      public boolean hasFocus() {
                 /* 
    P/P           *  Method: bool hasFocus()
                  *    hasFocus fails for all possible inputs
                  */
   116          throw new UnsupportedOperationException("Not supported yet.");
   117      }
   118  }








SofCheck Inspector Build Version : 2.17854
DummyInputField.java 2009-Jun-25 01:54:24
DummyInputField.class 2009-Sep-02 17:04:15