Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.Serializable;
- import javax.faces.bean.ManagedBean;
- import javax.faces.bean.SessionScoped;
- /**
- *
- * @author LichKing7
- */
- @ManagedBean
- @SessionScoped
- public class Home implements Serializable {
- private boolean home;
- private boolean contact;
- private boolean about;
- private boolean register;
- /**
- * Creates a new instance of Home
- */
- public Home() {
- home=true;
- contact=false;
- about=false;
- register=false;
- System.out.println();
- System.out.println("From Home bean properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
- }
- /**
- * @return the home
- */
- public boolean isHome() {
- return home;
- }
- /**
- * @param home the home to set
- */
- public void setHome(boolean home) {
- this.home = home;
- }
- /**
- * @return the contact
- */
- public boolean isContact() {
- return contact;
- }
- /**
- * @param contact the contact to set
- */
- public void setContact(boolean contact) {
- this.contact = contact;
- }
- /**
- * @return the about
- */
- public boolean isAbout() {
- return about;
- }
- /**
- * @param about the about to set
- */
- public void setAbout(boolean about) {
- this.about = about;
- }
- /**
- * @return the register
- */
- public boolean isRegister() {
- return register;
- }
- /**
- * @param register the register to set
- */
- public void setRegister(boolean register) {
- this.register = register;
- }
- public void menuHome(){
- home=true;
- contact=false;
- about=false;
- register=false;
- System.out.println("From menuHome properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
- }
- public void menuRegister(){
- home=false;
- contact=false;
- about=false;
- register=true;
- System.out.println("From menuRegister properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
- }
- public void menuAbout(){
- home=false;
- contact=false;
- about=true;
- register=false;
- System.out.println("From menuAbout properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
- }
- public void menuContact(){
- home=false;
- contact=true;
- about=false;
- register=false;
- System.out.println("From menuContact properties home:"+home+" contact"+contact+" about:"+about+" register"+register);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement