Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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.
Constructor and description |
---|
TableLayoutCell
(TableLayoutRow parent) |
Type | Name and description |
---|---|
void |
addComponent(Component component) |
protected GridBagConstraints |
createConstraints() |
protected int |
getAnchor() @return the GridBagConstraints enumeration for anchor |
int |
getColspan() |
Component |
getComponent() |
GridBagConstraints |
getConstraints() @return the constraints of this cell |
int |
getRowspan() |
boolean |
isColfill() Returns the colfill. |
boolean |
isRowfill() Returns the rowfill. |
void |
setAlign(String align) Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT} |
void |
setColfill(boolean colfill) Sets whether or not this column should allow its component to stretch to fill the space available |
void |
setColspan(int colspan) Sets the number of columns that this cell should span. |
void |
setRowfill(boolean rowfill) Sets whether or not this row should allow its component to stretch to fill the space available |
void |
setRowspan(int rowspan) Sets the number of rows that this cell should span. |
void |
setValign(String valign) Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM} |
Returns the colfill.
Returns the rowfill.
Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT}
align
- one of 'left', 'center', or 'right'Sets whether or not this column should allow its component to stretch to fill the space available
colfill
- The default is falseSets the number of columns that this cell should span. The default value is 1
colspan
- The default is 1Sets whether or not this row should allow its component to stretch to fill the space available
rowfill
- The default is falseSets the number of rows that this cell should span. The default value is 1
rowspan
- The default is 1Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}
valign
- one of 'top', 'middle', 'bottom'Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.