All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.viaoa.web.OATableComponent Maven / Gradle / Ivy

The newest version!
/*  Copyright 1999-2015 Vince Via [email protected]
    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 com.viaoa.web;

import java.awt.Component;

import com.viaoa.hub.Hub;
import com.viaoa.jsp.OATable;

/** 
    Interface that defines the behavior for  OATableComponents to work with an OATable.
    Any component that implements this interface can be used as a Table Column.
    

For more information about this package, see documentation. */ public interface OATableComponent { /** Hub that this component is bound to. */ public Hub getHub(); /** Hub that this component is bound to. */ public void setHub(Hub hub); /** A dot (".") separated list of property names. */ public String getPropertyPath(); /** A dot (".") separated list of property names. */ public void setPropertyPath(String path); /** Width of component, based on average width of the font's character. */ public int getColumns(); /** Width of component, based on average width of the font's character. */ public void setColumns(int x); /** Column heading when this component is used as a column in an OATable. */ public String getTableHeading(); /** Column heading when this component is used as a column in an OATable. */ public void setTableHeading(String heading); /** Editor used when this component is used as a column in an OATable. */ //qqqqqq public TableCellEditor getTableCellEditor(); /** Set by OATable when this component is used as a column. */ public void setTable(OATable table); /** Set by OATable when this component is used as a column. */ public OATable getTable(); public String getFormat(); /** Get the Renderer for this component when it is used as a column in an OATable. @see #customizeTableRenderer(JLabel, JTable, Object, boolean, boolean, int, int, boolean, boolean) */ //qqq public Component getTableRenderer(JLabel lbl, JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column); /** * This will be called after the default OATable settings are set for the cell, and before the * OATable.customizeRenderer is called. */ //qqqq public void customizeTableRenderer(JLabel lbl, JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column, boolean wasChanged, boolean wasMouseOver); public String getToolTipText(int row, int col, String defaultValue); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy