You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AliasParameter.java 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyright 2004-2005 Cendio AB.
  3. * Copyright 2012 Brian P. Hinz
  4. *
  5. * This is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This software is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this software; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
  18. * USA.
  19. */
  20. package com.tigervnc.rfb;
  21. public class AliasParameter extends VoidParameter {
  22. public AliasParameter(String name_, String desc_, VoidParameter param_,
  23. Configuration.ConfigurationObject co)
  24. {
  25. super(name_, desc_, co);
  26. param = param_;
  27. }
  28. public AliasParameter(String name_, String desc_, VoidParameter param_) {
  29. this(name_, desc_, param_, Configuration.ConfigurationObject.ConfGlobal);
  30. }
  31. public boolean setParam(String v) { return param.setParam(v); }
  32. public boolean setParam() { return param.setParam(); }
  33. public String getDefaultStr() { return param.getDefaultStr(); }
  34. public String getValueStr() { return param.getValueStr(); }
  35. public boolean isBool() { return param.isBool(); }
  36. public void setImmutable() {
  37. vlog.debug("set immutable "+getName()+" (Alias)");
  38. param.setImmutable();
  39. }
  40. public void setHasBeenSet() {
  41. param.setHasBeenSet();
  42. }
  43. public boolean hasBeenSet() {
  44. return param.hasBeenSet();
  45. }
  46. protected VoidParameter param;
  47. }