本文整理了Java中net.miginfocom.layout.LC.getLeftToRight()
方法的一些代码示例,展示了LC.getLeftToRight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LC.getLeftToRight()
方法的具体详情如下:
包路径:net.miginfocom.layout.LC
类名称:LC
方法名:getLeftToRight
[英]If the layout should be forced to be left-to-right or right-to-left. A value of null
is default and means that this will be picked up from the java.util.Locale that the container being layed out is reporting.
[中]如果布局应强制为从左到右或从右到左。默认值为null
,这意味着这将从java中获取。util。正在布局的容器正在报告的区域设置。
代码示例来源:origin: com.miglayout/miglayout-core
/** Returns if left-to-right orientation is used. If not set explicitly in the layout constraints the Locale
* of the <code>parent</code> is used.
* @param lc The constraint if there is one. Can be <code>null</code>.
* @param container The parent that may be used to get the left-to-right if lc does not specify this.
* @return If left-to-right orientation is currently used.
*/
public static boolean isLeftToRight(LC lc, ContainerWrapper container)
{
if (lc != null && lc.getLeftToRight() != null)
return lc.getLeftToRight();
return container == null || container.isLeftToRight();
}
代码示例来源:origin: com.miglayout/miglayout-ideutil
Boolean leftToRight = lc.getLeftToRight();
if (leftToRight != null) {
if (asAPI) {
内容来源于网络,如有侵权,请联系作者删除!