Advertisement
Guest User

register

a guest
May 14th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. import java.io.Serializable;
  2. import javax.faces.bean.ManagedBean;
  3. import javax.faces.bean.SessionScoped;
  4.  
  5. /**
  6. *
  7. * @author LichKing7
  8. */
  9. @ManagedBean
  10. @SessionScoped
  11. public class Home implements Serializable {
  12. private boolean home;
  13. private boolean contact;
  14. private boolean about;
  15. private boolean register;
  16.  
  17.  
  18. /**
  19. * Creates a new instance of Home
  20. */
  21. public Home() {
  22. home=true;
  23. contact=false;
  24. about=false;
  25. register=false;
  26. System.out.println();
  27. System.out.println("From Home bean properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
  28. }
  29.  
  30. /**
  31. * @return the home
  32. */
  33. public boolean isHome() {
  34. return home;
  35. }
  36.  
  37. /**
  38. * @param home the home to set
  39. */
  40. public void setHome(boolean home) {
  41. this.home = home;
  42. }
  43.  
  44. /**
  45. * @return the contact
  46. */
  47. public boolean isContact() {
  48. return contact;
  49. }
  50.  
  51. /**
  52. * @param contact the contact to set
  53. */
  54. public void setContact(boolean contact) {
  55. this.contact = contact;
  56. }
  57.  
  58. /**
  59. * @return the about
  60. */
  61. public boolean isAbout() {
  62. return about;
  63. }
  64.  
  65. /**
  66. * @param about the about to set
  67. */
  68. public void setAbout(boolean about) {
  69. this.about = about;
  70. }
  71.  
  72. /**
  73. * @return the register
  74. */
  75. public boolean isRegister() {
  76. return register;
  77. }
  78.  
  79. /**
  80. * @param register the register to set
  81. */
  82. public void setRegister(boolean register) {
  83. this.register = register;
  84. }
  85.  
  86.  
  87. public void menuHome(){
  88. home=true;
  89. contact=false;
  90. about=false;
  91. register=false;
  92. System.out.println("From menuHome properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
  93. }
  94.  
  95. public void menuRegister(){
  96. home=false;
  97. contact=false;
  98. about=false;
  99. register=true;
  100. System.out.println("From menuRegister properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
  101. }
  102.  
  103. public void menuAbout(){
  104. home=false;
  105. contact=false;
  106. about=true;
  107. register=false;
  108. System.out.println("From menuAbout properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
  109. }
  110.  
  111. public void menuContact(){
  112. home=false;
  113. contact=true;
  114. about=false;
  115. register=false;
  116. System.out.println("From menuContact properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
  117. }
  118.  
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement