CallBackTiledView.java revision 25e37495f2591ee8f2c057f2644ed5570b4c078d
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: CallBackTiledView.java,v 1.4 2008/12/23 21:26:17 ericow Exp $
*
*/
/*
* Portions Copyrighted 2011 ForgeRock AS
*/
/**
* This class contains a set of callbacks for login view bean
*/
public class CallBackTiledView
extends RequestHandlingTiledViewBase
implements TiledView, RequestHandler
{
private int curTile = 0;
/** index of current tile */
/** tiled view of choice */
/** value for attribute */
/** info text value */
/**
* constructs a tiled view of callbacks
*
* @param parent The reference of the parent container
* @param name The name of this view.
*/
}
/**
* registers child components/views
*/
protected void registerChildren() {
}
/**
* creates child component
*
* @param name of child component
* @return child component
*/
}
return new CallBackChoiceTiledView(this, TILED_CHOICE);
}
}
}
}
throw new IllegalArgumentException("Invalid child name ["
+ name + "]");
}
/**
* begins displaying page. we set the required information
*
* @param event display event
* @throws ModelControlException if problem access value of component
*/
throws ModelControlException {
if (getPrimaryModel() == null) {
throw new ModelControlException("Primary model is null");
}
} else {
}
super.beginDisplay(event);
}
/**
* moves the current tile position to the next available tile.
*
* @return true if another tile was available, false if the position
* remained unchanged because no next tile was available.
*
* @throws ModelControlException if manipulation of model fails.
*/
public boolean nextTile()
throws ModelControlException {
boolean movedToRow = super.nextTile();
if (movedToRow) {
curTile = getTileIndex();
if (curCallback instanceof NameCallback) {
} else if (curCallback instanceof PasswordCallback) {
} else if (curCallback instanceof ChoiceCallback) {
} else {
}
}
return movedToRow;
}
this.requiredList = requiredList;
}
/**
* set callback array
*
* @param callbacks array
* @param requiredList - list of required attribute
*/
this.requiredList = requiredList;
}
}
}
} else {
}
}
}
/**
* begins display of textbox field element
*
* @param event - child display event
* @return true if current callback is for textbox
*/
}
/**
* begins display of password field element
*
* @param event - child display event
* @return true if current callback is for password
*/
return (curCallback != null) &&
(curCallback instanceof PasswordCallback);
}
/**
* begins display of choice field element
*
* @param event - child display event
* @return true if current callback is for choices
*/
}
/**
* begins display of required marked element
*
* @param event - child display event
* @return true if current callback is required
*/
boolean required = false;
required = true;
}
}
return required;
}
boolean hasInfoText = false;
hasInfoText = true;
}
}
return hasInfoText;
}
private String getInfoText() {
result = s;
}
}
return result;
}
}