This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<border xsi:noNamespaceSchemaLocation="StartPage.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<!-- Watch screencast of this example at | |
https://youtu.be/vY60zLo6f5E | |
--> | |
<title>Start Page</title> | |
<!-- Define a tag for the layout property. | |
This will add a property to the auto-generated view model class. | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GeofenceListenerImpl implements GeofenceListener { | |
@Override | |
public void onExit(String id) { | |
} | |
@Override | |
public void onEntered(String id) { | |
if(!Display.getInstance().isMinimized()) { | |
Display.getInstance().callSerially(() -> { | |
Dialog.show("Welcome", "Thanks for arriving", "OK", null); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<border safeArea="true" rad-implements="LoginViewSchema"> | |
<y layout-constraint="north"> | |
<import> | |
import com.codename1.rad.components.loginform.*; | |
</import> | |
<private> | |
<var name="loginDelegate" | |
lookup="LoginViewDelegate"/> | |
</private> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ca.weblite.jabberwocky.controllers; | |
import ca.weblite.jabberwocky.controllers.BaseFormController; | |
import ca.weblite.jabberwocky.models.UserProfile; | |
import com.codename1.rad.controllers.Controller; | |
import com.codename1.rad.models.Entity; | |
import com.codename1.rad.nodes.ActionNode; | |
import com.codename1.rad.nodes.ViewNode; | |
import com.codename1.rad.schemas.Thing; | |
import com.codename1.rad.ui.entityviews.ProfileAvatarView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Copyright (c) 2021 Steve Hannah | |
Permission is hereby granted, free of charge, | |
to any person obtaining a copy of this software and | |
associated documentation files (the "Software"), to | |
deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, | |
merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __CN1GLOBALS__ | |
#define __CN1GLOBALS__ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "cn1_class_method_index.h" | |
#include <pthread.h> | |
#include <setjmp.h> | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Excerpt from https://github.com/shannah/ComponentImageGenerator/blob/master/src/com/codename1/compgen/MainTestRunner.java | |
// Project https://github.com/shannah/ComponentImageGenerator | |
public String generateHtml() { | |
HTMLBuilder sb = new HTMLBuilder(); | |
sb.appendRaw("<!doctype html>").newLine() | |
.open("html") | |
.open("head") | |
.open("title").append("Codename One Components").close() | |
.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights | |
// reserved. Use of this source code is governed by a BSD-style license that | |
// can be found in the LICENSE file. | |
package com.codename1.impl.javase.cef; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.codename1.samples; | |
import com.codename1.io.Log; | |
import static com.codename1.ui.CN.updateNetworkThreadCount; | |
import com.codename1.ui.Component; | |
import com.codename1.ui.Form; | |
import com.codename1.ui.Graphics; | |
import com.codename1.ui.geom.Dimension; | |
import com.codename1.ui.geom.GeneralPath; | |
import com.codename1.ui.geom.Point; |