Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 package org.cdlflex.ui.markup.html.panel;
A Panel that displays an org.cdlflex.ui.markup.html.alert.Alert.
 public class AlertPanel extends Panel implements ICssClassNameProvider {
     private static final long serialVersionUID = 1L;
     private Alert alert;
     public AlertPanel(String id) {
     public AlertPanel(String idIModel<?> model) {
     public AlertPanel(String idLevel level) {
     public AlertPanel(String idIModel<?> modelLevel level) {
     public AlertPanel(String idboolean dismissible) {
     public AlertPanel(String idIModel<?> modelboolean dismissible) {
     public AlertPanel(String idLevel levelboolean dismissible) {
     public AlertPanel(String idIModel<?> modelLevel levelboolean dismissible) {
         add( = new Alert("alert"modelleveldismissible));
     public String getCssClassName() {
         return .getCssClassName();
     public Level getLevel() {
         return .getLevel();
     public AlertPanel setLevel(Level level) {
         return this;
     public boolean isDismissible() {
         return .isDismissible();
     public AlertPanel setDismissible(boolean dismissible) {
         return this;
     public boolean isFade() {
         return .isFade();
     public AlertPanel setFade(boolean fade) {
         return this;
     protected void onInitialize() {

Factory method for creating the component displaying the body of the alert. Defaults to a label that displays the default model of this panel.

id the component id
a new component
    protected Component newMessageComponent(String id) {
        return new Label(idgetDefaultModel());
New to GrepCode? Check out our FAQ X