Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2007, 2010 The Apache Software Foundation
 //
 // 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
 //
 //     http://www.apache.org/licenses/LICENSE-2.0
 //
 // 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.apache.tapestry5.services;
A contribution to the BeanBlockSource service, defining a page name and block id (within the page) that can edit or display a particular type of property.
public final class BeanBlockContribution
    private final String dataType;
    private final String pageName;
    private final String blockId;
    private final boolean edit;
    public BeanBlockContribution(String dataTypeString pageNameString blockIdboolean edit)
    {
        assert InternalUtils.isNonBlank(dataType);
        assert InternalUtils.isNonBlank(pageName);
        assert InternalUtils.isNonBlank(blockId);
        this. = dataType;
        this. = pageName;
        this. = blockId;
        this. = edit;
    }

    
The type of data for which the indicated block will provide an editor or displayer for.
    public String getDataType()
    {
        return ;
    }

    
The id of the block within the page.
    public String getBlockId()
    {
        return ;
    }

    
If true, then the block provides an editor for the property, consisting of a org.apache.tapestry5.corelib.components.Label and some field component (or set of field components). If false, the block is used to display the value of the property, usually by applying some kind of formatting to the raw value.
    public boolean isEdit()
    {
        return ;
    }

    
The logical name of the page containing the block.
    public String getPageName()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X